Ralf Hemmecke wrote:
>
> Just for the record, I think I've found the source of the error message.
>
> In my code I had something like
>
> )abbrev domain AA Aa
> Aa(): ... == ...
>
> ++ some doc
> )abbrev domain BB Bb
> Bb(): ... == ...
>
> Clearly, the compiler wants to associate the ++ to the domain Aa and
> gets somehow confused.
>
> I didn't know that the position of the )abbrev makes such a big difference.
>
> After changing to
>
> )abbrev domain BB Bb
> ++ some doc
>
> The file compiles fine.
>
> As always, the error message that the compiler throws at the user is, of
> course not very much helpful in identifying the problem with the ++
> docstring.
The message about 'linepos' was a plain bug. Also, the second
constructor got wrong documentation (from the first one). Both
problems are now fixed.
Concerning special role of ')abbrev': basically '++' comments get
attached to object before them. Any non-comment thing stops
this attachement and then '++' comment can attach to following
object. Actually, only toplevel constructor documentation goes
before. But this explains why you need something to signal that
old constructor ends and the new begins...
--
Waldek Hebisch
--
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 https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.