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: 14-Nov-2002 18:12

Hi Ladislav
> It means, that [(a)] should contain a paren! containing a word as it did, > but (a)/(b) shall differ from (a) / (b), i.e. parens shall be treated > specifically - neither as possible word characters, nor as ordinary > delimiters.
...
> This case doesn't matter, any solution is acceptable to me.
Only this? Well: everything was clear from the beginning. :-)
> OTOH, it is OK to obtain: > > length? [(a) / (b)] ; == 3 > > What do you think?
I agree. I should like at least to use compose on path: b: 1 compose a/(b) ;== a/1 and get-word in this case:
>> x: func [/a][a] >> b: 'a;== a >> x/:b ;==true
Now the latter print none as it would called without any refinement and this seems to me a bug.
> One may try to check an analogical situation: [a]/[b] versus [a] / [b]. What > would be the best solution in that case?
Is a too radical proposal the following? [[a] 2]/[a] ; ==2 [a 2 b 3]/b ; ==3 a: [[a] 1 [b] 2] a/[b];==2 a/([b]) ;==2 Going in this direction we'll can embed a whole Rebol program in a path! instead of a block! :-) --- Ciao Romano