I guess the bigger problem will be to introduce the "generate" and
"yield" keywords. It's unfortunate that stream.spad, ituple.spad
and fnla.spad define a "generate" function.

"generate" from fnla.spad is not a problem -- this is very
specialised package so we can rename it.  We can probably also rename
"generate" from stream.spad and ituple.spad (AFAICS there is 20-30
uses in the algebra).

I'm certainly in favour of renaming them. Also "delay is a function name
that might be in the list.

Bigger problem is actual implementation -- to implement
Aldor-compatible generate we need to transform code in ways which are
currently not supported (for example "generate" need to jump into
loops).  Limited version, say with "yield" allowed only at top level
of a block would be easier...

I'm not really interested in a "top-level implementation" for generate. That's probably too limited.

But I see that this "generate" is probably not soo easy especially since it is compiled down to LISP.

Ralf

--
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.

Reply via email to