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

[REBOL] Re: REBOL/Core Docs, Appendix 1 Updated

From: AJMartin:orcon at: 14-Aug-2003 22:03

> email: [luke--rebol--com] > probe email/user > luke > probe email/host > rebol.com > --------------------------------- > > Nice! Was this ever mentioned in some docs before? I didn't know about
that possibility :-) Page 471 of the Core PDF for version 2.3. :)
> >> a/:b/y/:c: 5 > ** Syntax Error: Invalid word -- :c: > ** Near: (line 1) a/:b/y/:c: 5 > >> > > Is there any easy way how to set the value without recostructing the path > like: > > do [to-set-path reduce ['a b 'y c] 5] > > If not, what do you think about implementing such simple path access
format I mentioned above in Rebol interpereter? I'd also like this problem fixed:
>> x: [test/foo:bar/dot]
== [test/foo:bar/dot]
>> type? x/1/2
== url!
>> probe x/1/2
foo:bar/dot == foo:bar/dot Note that the second part of the path! value is interpreted by Rebol as a URL!.
>> x: [test/http://www.rebol.com/docs/core23/rebolcore-16.html/dot]
== [test/http://www.rebol.com/docs/core23/rebolcore-16.html/dot]
>> type? x/1/2
== url!
>> probe x/1/2
http://www.rebol.com/docs/core23/rebolcore-16.html/dot == http://www.rebol.com/docs/core23/rebolcore-16.html/dot Putting a URL! value inside a path! value seems illogical to me. After all, I can't access this with path! notation:
>> test: [http://www.rebol.com/docs/core23/rebolcore-16.html [dot 123]]
== [http://www.rebol.com/docs/core23/rebolcore-16.html [dot 123]]
>> test/http://www.rebol.com/docs/core23/rebolcore-16.html/dot
** Script Error: Invalid path value: http://www.rebol.com/docs/core23/rebolcore-16.html/dot ** Near: test/http://www.rebol.com/docs/core23/rebolcore-16.html/dot Andrew J Martin ICQ: 26227169 http://www.rebol.it/Valley/ http://valley.orcon.net.nz/ http://Valley.150m.com/