[REBOL] Re: System data
From: lmecir:mbox:vol:cz at: 7-Jan-2003 9:34
Hi,
----- Original Message -----
From: "Anton"
> A big difference between 1.2.1 and the latest
> betas is the "aggressiveness" of the path evaluation.
> To be compatible with 1.2.1 and the later betas,
> change code such as:
>
> path
>
> to:
>
> do compose [(path)]
>
> That will make sure the path is evaluated.
> So in your case, I think you should change:
>
> to-display: to-path path-words
>
> to:
>
> to-display: do compose [(to-path path-words)]
this isn't the correct place, actually, the expression
to-display: to-path path-words
should behave the same both in 1.2.1 and in the latest betas.
> For the reason why, see the changes.txt file that
> was included with the Core 2.5.3 release.
> (Search for "Less Aggressive Evaluation")
> > Funny though. Here's from the script:
> > PROB: func ['to-be-probed] [
> > if not value? 'to-be-probed [to-be-probed: 'system]
> > if any [any-function? get to-be-probed port? get to-be-probed] [
> > pop-up source-string :to-be-probed
> > exit
> > ]
> > clear path-words
> > append path-words to-be-probed
> >
> > to-display: to-path path-words
> > main: layout [
> > styles main-styles
> > title "Primitive Rebol Object Browser"
> > text "Current path: "
> > path-text: text form to-path path-words 745x16
> > across
> > list1: list data sort first to-display ; here's where the error
comes
> > (...)
> >
> > What I'm sorting turns out to be an object, but the point is: why
> > on earth doesn't 1.2.1 fail on this?
the difference is here:
first to-display
in 1.2.1 this evaluates like the expression:
first do reduce [:to-display]
in the latest betas.
Regards
-L