> Andrew Clarke wrote:
>
> I see! I was just reading about explicitly using "suspend
> <some_expr>". I guess that in the case of my snippet, the "suspend" is
> implied - to someone who understands what's going on.
>
Not so much implied; you can write your own code with suspends, but ultimately
when it gets down to it, the core operators of Icon itself can suspend and
resume. If you ever look at the C source code of Icon, you will indeed see
calls to make the C runtime suspend, fail or return in pieces of code like ! <
> <= >= find(), match() etc etc etc for all the built-ins that can generate
The magic of Icon was the realization that generators could be part of the
entire language, not just inside pattern matching. If you ever do regular
expression patterns in other languages (eg /[a-z]*\.abc/ is a regex pattern),
there's a kind of generate and backtracking happening there. Icon is one of
the few languages that can backtrack anywhere. Prolog is the only other one I
can think of.
NOW it's weekend! cheers
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group