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

[REBOL] Bug! path! in objects don't behave the same as path! outside object Re:(

From: al:bri:xtra at: 26-Sep-2000 19:55

Hi, Elan. You wrote:
> When the REBOL evaluator discovers that the word p is referencing a path,
then the path is dereferenced as well:
> >> p > == "'p in 'block" > > But when REBOL is evaluating a path (this time associated with a block)
then unlike when evaluating a word, the evaluation is not repeated for the referenced path:
> >> derived: [ p block/p ] > == [p block/p] > >> derived/p > == block/p > > In short, REBOL is consistent with respect to the distinction it makes
between evaluating words and evaluating paths. The way REBOL treats path is not specific to objects. I agree. But it would be very, very nice if the natural value of a path! is the dereferenced value. So that a path! value operates like a function! value does. Andrew Martin ICQ: 26227169