[REBOL] Re: more than one pain

2002-06-05 Thread Boleslav Brezovsky

That's great solution, thanks, now I can shorten some of my scripts by
factor of 2 :-)


Hi,

> It's just a workaround, and you surely know it...
> 
> >> a: [x y]
> == [x y]
> >> b: 1x2
> == 1x2
> >> c: true
> == true
> >> c': a/:c
> == x
> >> b/:c'
> == 1

Or

 pick b c

---
Ciao
Romano



-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.


---
Pøíchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.351 / Virová báze: 197 - datum vydání: 19.4.2002
 

---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.351 / Virová báze: 197 - datum vydání: 19.4.2002
 

--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.




[REBOL] Re: more than one pain

2002-06-05 Thread Carl Read

On 06-Jun-02, Romano Paolo Tenca wrote:
> Hi,

>> It's just a workaround, and you surely know it...
>> 
 a: [x y]
>> == [x y]
 b: 1x2
>> == 1x2
 c: true
>> == true
 c': a/:c
>> == x
 b/:c'
>> == 1

And I don't think it works as Boleslav was wanting...

>> c: false
== false
>> b/:c'   
== 1

> Or

> pick b c

That does though.

>> b: 1x2
== 1x2
>> c: true 
== true
>> pick b c
== 1
>> c: false
== false
>> pick b c
== 2

That you can do that but not...

>> b/:c
** Script Error: Invalid path value: false
** Near: b/:c

is certainly inconsistant, if not an outright bug.  All dependant on
how paths are supposed to be imagined I guess...

-- 
Carl Read

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: more than one pain

2002-06-05 Thread Romano Paolo Tenca

Hi,

> It's just a workaround, and you surely know it...
> 
> >> a: [x y]
> == [x y]
> >> b: 1x2
> == 1x2
> >> c: true
> == true
> >> c': a/:c
> == x
> >> b/:c'
> == 1

Or

 pick b c

---
Ciao
Romano



-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: more than one pain

2002-06-05 Thread Gabriele Santilli

Hi Boleslav,

On Wednesday, June 05, 2002, 12:35:51 PM, you wrote:

>>> b/:c

BB> ** Script Error: Invalid path value: true
BB> ** Near: b/:c

BB> That's bad. I've got use for it but it does not work :(

BB> anybody?

It's just a workaround, and you surely know it...

>> a: [x y]
== [x y]
>> b: 1x2
== 1x2
>> c: true
== true
>> c': a/:c
== x
>> b/:c'
== 1

Regards,
   Gabriele.
-- 
Gabriele Santilli <[EMAIL PROTECTED]>  --  REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.