Maybe Waldek corrects me, but to my knowledge constants are not possible.
0 and 1 are in some sense special.
I'd be happy if SPAD could deal with constants in the same way as with
nullary functions, but would distinguish them.
If course, if we were in a pure functional world, a distinction would
only be cosmetic. But nullary functions can have side effects. Constants
cannot.
Ralf
On 07/12/2011 04:35 PM, Yrogirg wrote:
And how to export constants? This variant behaves weirdly:
)abbrev package TST Test
Test(): with
myconst : Float
== add
myconst := 3.0
The only working solution I have now is
)abbrev package TST Test
Test(): with
myconst : () -> Float
== add
myconst() == 3.0
--
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.