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

How to create none! in nested block?

 [1/9] from: robert::muench::robertmuench::de at: 19-Jun-2002 19:05


Hi, I have the following problem: test: [[myword none]] print [type? test/1/2 none? test1/1/2]
>>word false
I would like to get
>>none true
Any idea how to do this? Robert

 [2/9] from: gscottjones:mchsi at: 19-Jun-2002 13:16


From: "Robert M. Muench"
> Hi, I have the following problem: > test: [[myword none]]
<<quoted lines omitted: 3>>
> >>none true > Any idea how to do this? Robert
Hi, Robert, Here is one way:
>> test: append/only copy [] append [myword] none
== [[myword none]]
>> print [type? test/1/2 none? test/1/2]
none true I am sure that there are others. Hope this helps. --Scott Jones

 [3/9] from: greggirwin:mindspring at: 19-Jun-2002 12:10


Hi Robert,
>> test: compose/deep [[myword (none)]]
== [[myword none]]
>> print [type? test/1/2 none? test/1/2]
none true HTH! --Gregg

 [4/9] from: g:santilli:tiscalinet:it at: 19-Jun-2002 21:11


Hi Robert, On Wednesday, June 19, 2002, 7:05:48 PM, you wrote: RMM> test: [[myword none]] RMM> print [type? test/1/2 none? test1/1/2]
>>>word false
RMM> I would like to get
>>>none true
Just so that we don't forget, the new beta allows: test: [[myword #[none]]] Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

 [5/9] from: ammon:rcslv at: 17-Jun-2002 20:12


hi, If you evaluate the block some how then it will do as you ask. The print example that the others have shown simply evaluates the value of 'test/1/2 you can also DO the code...
>> none? do test/1/2
== true HTH Ammon On Wednesday 19 June 2002 01:05 pm, Robert M. Muench wrote:

 [6/9] from: rotenca:telvia:it at: 19-Jun-2002 23:58


My attempt: reduce [reduce[ 'myword none]] --- Ciao Romano

 [7/9] from: robert:muench:robertmuench at: 20-Jun-2002 13:56


> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf Of
<<quoted lines omitted: 4>>
> Just so that we don't forget, the new beta allows: > test: [[myword #[none]]]
That's pretty cool! I didn't knew that this syntax could be used in normal evaluation mode too. I thougth it could only be used in combination with load/all. Robert

 [8/9] from: robert:muench:robertmuench at: 20-Jun-2002 13:56


> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf Of
<<quoted lines omitted: 3>>
> Subject: [REBOL] Re: How to create none! in nested block? > >> test: compose/deep [[myword (none)]]
Hi, thanks! I'm alway forgetting about 'compose even it's such a useful function. Robert

 [9/9] from: g:santilli:tiscalinet:it at: 22-Jun-2002 17:09


Hi Robert, On Thursday, June 20, 2002, 1:56:37 PM, you wrote: RMM> That's pretty cool! I didn't knew that this syntax could be used in normal RMM> evaluation mode too. I thougth it could only be used in combination with RMM> load/all. Robert It is understood by normal LOAD, but generated only by MOLD/ALL. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted