[REBOL] Path with integers
From: giovanni::cardona::com at: 7-Dec-2000 14:28
REBOL [ Title: "Path tests for a card game"
Author: "[Giovanni--Cardona--com]"
Comments: {
As a programmer i know this is not
a pretty way to accomplish this, but
i was toying around with the path
possibilities of rebol, and i wonder
if using integers as path is possible
in rebol. Im just starting using Rebol
and I think it rocks!
}
]
;The deck have 40 cards. An individual image path will be added later
cards: [
1 [
type gold
value 11
num 1
]
2 [
type gold
value 0
num 2
]
3 [
type gold
value 10
num 3
]
4 [
type gold
value 0
num 4
]
5 [
type gold
value 0
num 5
]
6 [
type gold
value 0
num 6
]
7 [
type gold
value 0
num 7
]
8 [
type gold
value 2
num 10
]
9 [
type gold
value 3
num 11
]
10[
type gold
value 4
num 12
]
11[
type cups
value 11
num 1
]
]
print cards/10/type ; This prints OK
print cards/11/type ; Integer in path detected!
print cards/9/type