Taybin Rutkin wrote:

> On Wed, 22 Nov 2000, Dave Gudeman wrote:
>
> >   f := create(x,y) {2*x + y}
> >
> > which could be called like a function f(2,3) to produce 7 or like an SL5
> > procedure call:
> >
> >   f with (2,3)   #binds x to 2 and y to 3
> >   i := @f           # activates f with its current parameters
> >   every !f    # generates all values of f with current parameters
> >   f with (4,5)   #binds new parameters
> >   j := @f           # activates f with new parameters
>
> Could you explain why "every !f" wouldn't just return 7 continually?

Well in this case it isn't useful, just an example of the use of ! as opposed
to @. It would produce the value 7 once and then throw it away and fail,
since ! does not force repetition, just exhausts the result set of the
underlying expression. Alternatively, you could define ! to continue where
the last @ left off.

BTW, I'm using Netscape Messenger to send mail, are you Unix users getting
ugly-formated messages? (please respond to me only, not to the group,
thanks.)


_______________________________________________
Unicon-group mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/unicon-group

Reply via email to