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

Sameness block and parse

 [1/3] from: rotenca::telvia::it at: 29-May-2002 21:56


The same which is true for string is true for hash and block and list! I must check if this mess the hash! It could be very useful.
>> ha: make hash! [1 2 3]
== make hash! [1 2 3]
>> parse/all ha [b:]
== false
>> b
== [1 2 3]
>> type? b
== block!
>> insert b 5
== [1 2 3]
>> ha
== make hash! [5 1 2 3] --- Ciao Romano

 [2/3] from: lmecir:mbox:vol:cz at: 29-May-2002 23:41


What about lists? Ciao -L ----- Original Message ----- From: "Romano Paolo Tenca" <[rotenca--telvia--it]> To: <[rebol-list--rebol--com]> Sent: Wednesday, May 29, 2002 9:56 PM Subject: [REBOL] Sameness block and parse The same which is true for string is true for hash and block and list! I must check if this mess the hash! It could be very useful.
>> ha: make hash! [1 2 3]
== make hash! [1 2 3]
>> parse/all ha [b:]
== false
>> b
== [1 2 3]
>> type? b
== block!
>> insert b 5
== [1 2 3]
>> ha
== make hash! [5 1 2 3] --- Ciao Romano

 [3/3] from: rotenca:telvia:it at: 30-May-2002 0:34


Hi Ladislav,
> What about lists?
Starting my experiment with parsing list. First result: it does not work under View 1.2.1.3.1 and 1.2.5.3.1. This means that parse always fails with list! when using set-word to change the list. I think that 'b is a copy of 'li in this example: li: make list! [1 2 3] ;== make list! [1 2 3] parse/all li [b: (change b 4) to end] ;== true li ;== make list! [1 2 3] type? b ;== block! b ; == [4 2 3] --- Ciao Romano