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: cyphre:seznam:cz at: 14-Aug-2003 10:58

Hi Carl and all, Thanks for the update! Just noticed this in Email section: --------------------------------- 2.3.3. Access Refinements can be used with an email value to get the user name or domain. The refinements are: /user - Get the user name. /host - Get the domain. Here's how these refinements work: email: [luke--rebol--com] probe email/user luke probe email/host --------------------------------- Nice! Was this ever mentioned in some docs before? I didn't know about that possibility :-) I have been thought about the path evaluation part : What do you think about this?
>> a: [x [y [z 5]]]
== [x [y [z 5]]]
>> b: 'x
== x
>> c: 'z
== z
>> 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? regards, Cyphre --- Original Message -----