Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] func args by ladislav

From: rotenca:telvia:it at: 15-Oct-2001 18:27

Hi, Ladislav I have read your beatiful new article about func args. There is at least one thing with which I do not agree: i think that 'do takes only one argument. It is of type 'any (not 'any-type!). If you pass a function pointer to 'do, it evaluate it, if it requires others arguments the interpret take them and so on. It is the same for expressions like: next head insert ... Another thing: your function fails in these cases:
>> args-taken? :head reduce [:next [1 2]]
** Script Error: none expected series argument of type: series port ** Where: args-taken? ** Near: test: do/next test
>> args-taken? :head [next [1 2]]
** Script Error: none expected series argument of type: series port ** Where: args-taken? ** Near: test: do/next test To end: http://www.sweb.cz/LMecir/contexts.html gives a broken file --- Ciao Romano