On Mon, 29 Nov 2010, Sven Schreiber wrote:
IIRC adding models to the model table (what "xxx" <-
system would do) is
not allowed inside a function, because functions are not supposed to
affect/alter the outer scope. There was a discussion on this before I
think (may have been on the devel list instead of the users list).
Yes, that's right: you can't save named models inside functions.
However, I see that this can be a problem.
We should be able to fix this by allowing "restrict" and
"estimate" to operate on the (anonymous) "last model" in the case
where the last model is a system. That is, I'll aim to make the
following variant on Ofer's function work:
# system spec
# restriction spec