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

[REBOL] Re: Bug! in assignment to date! values with stacked set-path values

From: rotenca:telvia:it at: 18-Nov-2002 17:50

Hi Ladislav
> Some disadvantages: > > 1) the function must test, how it has been called, although that information > has already been processed to get the arguments > > 2) the refinement system works well only if any refinement combination is > "legal", otherwise the function must check the combination on its own
The 3) problem is confusion with path. The / divisor for function refinements forces the interpreter to discard all refinement which follow a function call in a path: a: func[/b /c][[[1]]] a/b/c/1/1; == [[1]] with a different char, for example "!" we could write: a: func[!b !c][[[1]]] a!b!c/1/1;== 1 like in x: [[1]] x/1/1; == 1
> The main advantage is a lower pollution of the system dictionary.
Only because all loaded local words are added to the global context, but i'm thinking that this cannot be changed. --- Ciao Romano