common_tests ==>
-- list of test common to all cases
.....
testcaseNoClear("lists")
x := ...
common_tests where
TESTEQUALS(A, B) ==> testEquals("x(" A ")", B)
...
(7) -> t where (t ==> 1)
Line 1: t where (t ==> 1)
.........A
Error A: syntax error at top level
Error A: Improper syntax.
2 error(s) parsing
(7) -> t where macro t == 1
(7) 1
I would also expect the following to work.
(8) -> x where x := 1
Line 1: x where x := 1
........A
Error A: syntax error at top level
Error A: Improper syntax.
2 error(s) parsing
Is "where" basically restricted to SPAD code?
The FriCAS-Book is rather quiet about "where".
I've only found something that could be used in a session on page
176 (macro fibStream).
Is that a bug?
Ralf
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/54c7962c-e171-9dec-c50b-53fba3e3b0c2%40hemmecke.org.