Michael Somos on Fri, 12 Nov 1999 19:00:29 -0500 (EST) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
defining functions |
Spurred by a recent message to par-dev, I have realized that it is possible to define more than one function on a line. Here is the way : gp> (a()="a");b()="b" gp> ?a a() = "a" gp> ?b b() = "b" Note that there is a need to do something to avoid the following case : gp> a()="a";b()="b" gp> ?a a() = "a";b()="b" The definition of a() does not stop at the ";". With the previous use of enclosing parenthesis, it stops before the ";". Shalom, Michael