#args
2 messages in this thread
to any benchmark user:
a friend of mine wanted to learn programming on the amiga, said he didn't
like the looks of c and asked me for a recommendation; i suggested bm modula 2.
he has a few simple questions that i can't answer, i don't program modula, and
maybe someone can help out.
how do you handle arguments when running from cli, similar to what c does
with argc and argv? could we see a code fragment? the manual mentions a source
debugger which isn't listed in various places that carry avant-garde stuff: is
it available?
thank you much…
Reinhard,
There is no absolutely standard way of handling args but Benchmark Modula-2.
handles them just like C, i.e., argc and argv. For example:
IF (argc = 2) THEN
WriteString("First Argument = ");
WriteString(argv^[1]^); END;
The second question regarding a source-level debugger. There is currently a
third-party debugger called LDebug which does directly support Benchmark via a
utility developed by Avant-Garde Sofware. However, in the future we will have
our own source-level debugger. Another possible option is MetaScope for
symbolic asm debugging. There are also a couple of other products which work
with Benchmark: PowerWindows 2.5, InovaTools 1. I hope I have answered all of
the questions in your msg. Thanks for your ineterst…
>> Leon Frenkel <<