Serge D. Mechveliani wrote:
>
> The book says
> "There is no way to write long milti-line comments other than
> starting each line with ``-'' or ``+''.
> "
>
> How the programmers live with this?
> For debugging, it is often needed to comment out some large block
> in the source.
> Do they save the file to Foo.spad.sav,
> remove the block in Foo.spad, and so on?
>
There is conditional compilation feature. You can write
)if false
-- something which will be ignored
...
Even arbitrary text
)endif
Note: ')if' (and ')endif') is recognized only at start of a line.
Syntax of things after ')if' is likely to change, currently in Spad
you may have here any valid Boot expression ('false' is an example
of Boot expression). There is also ')else' and ')elseif'. And ')if'
is nestable.
Note2: In Spad 'true' works as expected, but in interpreter
'false' and 'true' have the same effect (the same as 'false'
in Spad).
BTW: The sentence 'no way' is from introductry part of Axiom
book. At that time it would be unwise to speak about conditional
compilation...
--
Waldek Hebisch
[email protected]
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/fricas-devel?hl=en.