Kat wrote:
> Cool, this works too:
> 
> block: [
> thing1 thing2 thing3 thing4
> A thing1 B thing2 C thing3 D thing4
> A.2 thing1sub B.2 thing2sub C.2 thing3sub D.2 thing4sub
> ]

So I tried decimal point numbers:

>> block: [1.1 "One dot one" 1.2 "One dot two" 1.3 "One dot three"]
== [1.1 "One dot one" 1.2 "One dot two" 1.3 "One dot three"]
>> block/1.3
== 1.1
>> block/2.6
== "One dot one"
>> type? 2.6
== decimal!

Looks like REBOL converts the decimal number into an integer, and then
uses that. That doesn't seem right. Next I tried tuples:

>> block: [1.1.1 "One dot one" 1.2.1 "One dot two" 1.3.1 "One dot
three"]
== [1.1.1 "One dot one" 1.2.1 "One dot two" 1.3.1 "One dot three"]
>> block/1.3.1
== "One dot three"
>> type? 1.3.1
== tuple!

Looks like tuples work correctly, but not decimal numbers. I've sent
this to REBOL [EMAIL PROTECTED]

Andrew Martin
[EMAIL PROTECTED]
http://members.xoom.com/AndrewMartin/
Online @ 33,600 Baud!
-><-

Reply via email to