Dear Unicon-group,
The following message came in on the list from an effectively anonymized
source, but the questions are fun. What answers would you give?
Cheers,
Clint
=================original message follows===================
Why doesn't this work:
altern:=create(1 to 9)
every (@altern) do {...}
as in (pseudocode!):
altern:="(1 to 9)"
every EVAL(altern) do {..} ### delayed EVALuation
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
BTW, check out:
procedure curly(a,b)
local N
if type(a)=="list" then {
N:= copy(a)
if type(N[1])=="co-expression" then {a:=@(N[1])}
if type(N[2])=="co-expression" then {b:=@(N[2])}
}
write(a,"_",b)
end
------------------------------------------------------
You can call this procedure with either
curly("suc","cess")
or...
curly{"SUC","CESS"} ### Note the COMMA separator !!!!
------------------------------------------------------
It seems the CURLY brackets were intended to make "argument-
evaluation" before a call "BackTrack-safe".
However, you can't call EVERY, WHILE and UNTIL in the same way as the CURLY
procedure above. Apparently you must use SEMICOLONS instead of commas:
while{... ; ... ; ... } do {...}
================================================
Thanks!
Bob
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group