Ralf Hemmecke wrote:
>
> This script
>
> https://github.com/fricas/fricas/blob/master/src/scripts/unpack_file
>
> is obviously buggy by design. Oh, undocumented? Again wasted time. :-(
>
> It splits a .spad file at the )abbrev lines and completely ignores
> global definitions.
Yes, that is by design. 'unpack_file' just cuts consequtive lines
from ')abbrev' to next ')abbrev' or end of file. In the future
I would like to switch to compiling whole file. During transitional
period global macros are undesirable because they may have different
effect depending on file beeing split or not.
I wrote about limitiation of 'unpack_file' on the mailing list.
> Define a .spad file and include it into the normal build process.
>
> ====================
> macro rep x == ...
>
> )abbrev domain A1 A1
> ... (use rep here)
>
> )abbrev domain A2 A2
> ... (use rep also here
>
> ====================
>
> FriCAS compilation will fail, because A1.spad and A2.spad will be
> generated, but neither of them will contain the macro definition.
Yes.
--
Waldek Hebisch
[email protected]
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.