[REBOL] Re: Invalid Path Value
From: jelinem1:nationwide at: 30-Nov-2000 7:56
An easy question to answer - even I could do it!
>> print rotation-count
1
>> print rotation-file/1
1,2,3,4,5
>> print rotation-file/:rotation-count
Note the colon in front of rotation-count. This will evaluate the word
before using it as part of the path. Fortunately REBOL has very little
syntax like this that you have to remember.
- Michael Jelinek
Ryan Smith
<[smithry--us--ibm--com]>@rebol.com on 11/30/2000 06:15:51 AM
From: "Ryan Smith" <[smithry--us--ibm--com]>@rebol.com on 11/30/2000 06:15 AM
Please respond to [rebol-list--rebol--com]
Sent by: [rebol-bounce--rebol--com]
To: [rebol-list--rebol--com]
cc:
Subject: [REBOL] Invalid Path Value
Can anyone help me with what I am doing wrong at the end of this screen
dump?
Thank you.
>> rotation-file
== ["1,2,3,4,5" "1,2,3,5,4" "1,2,4,3,5" "1,2,4,5,3" "1,2,5,3,4"
1,2,5,4,3
"1,3,4
,2,5" "1,3,4,5,2" "1,3,5,2,4" "1,3,5,4,2" "1,3,2,...
>> rotation-count
== 1
>> type? rotation-file
== block!
>> type? rotation-count
== integer!
>> print rotation-file
1,2,3,4,5 1,2,3,5,4 1,2,4,3,5 1,2,4,5,3 1,2,5,3,4 1,2,5,4,3 1,3,4,2,5
1,3,4,5,2 1,
3,5,2,4 1,3,5,4,2 1,3,2,4,5 1,3,2,5,4 1,4,5,2,3 1,4,5,3,2 1,4,2,3,5
1,4,2,5,3 1,4,
3,2,5 1,4,3,5,2 1,5,2,3,4 1,5,2,4,3 1,5,3,2,4 1,5,3,4,2 1,5,4,2,3
1,5,4,3,2 2,3,4,
1,5 2,3,4,5,1 2,3,5,1,4 2,3,5,4,1 2,3,1,4,5 2,3,1,5,4 2,4,5,1,3 2,4,5,3,1
2,4,1,3,
5 2,4,1,5,3 2,4,3,1,5 2,4,3,5,1 2,5,1,3,4 2,5,1,4,3 2,5,3,1,4 2,5,3,4,1
2,5,4,1,3
2,5,4,3,1 2,1,3,4,5 2,1,3,5,4 2,1,4,3,5 2,1,4,5,3 2,1,5,3,4 2,1,5,4,3
3,4,5,1,2 3,
4,5,2,1 3,4,1,2,5 3,4,1,5,2 3,4,2,1,5 3,4,2,5,1 3,5,1,2,4 3,5,1,4,2
3,5,2,1,4 3,5,
2,4,1 3,5,4,1,2 3,5,4,2,1 3,1,2,4,5 3,1,2,5,4 3,1,4,2,5 3,1,4,5,2
3,1,5,2,4 3,1,5,
4,2 3,2,4,1,5 3,2,4,5,1 3,2,5,1,4 3,2,5,4,1 3,2,1,4,5 3,2,1,5,4 4,5,1,2,3
4,5,1,3,
2 4,5,2,1,3 4,5,2,3,1 4,5,3,1,2 4,5,3,2,1 4,1,2,3,5 4,1,2,5,3 4,1,3,2,5
4,1,3,5,2
4,1,5,2,3 4,1,5,3,2 4,2,3,1,5 4,2,3,5,1 4,2,5,1,3 4,2,5,3,1 4,2,1,3,5
4,2,1,5,3 4,
3,5,1,2 4,3,5,2,1 4,3,1,2,5 4,3,1,5,2 4,3,2,1,5 4,3,2,5,1 5,1,2,3,4
5,1,2,4,3 5,1,
3,2,4 5,1,3,4,2 5,1,4,2,3 5,1,4,3,2 5,2,3,1,4 5,2,3,4,1 5,2,4,1,3
5,2,4,3,1 5,2,1,
3,4 5,2,1,4,3 5,3,4,1,2 5,3,4,2,1 5,3,1,2,4 5,3,1,4,2 5,3,2,1,4 5,3,2,4,1
5,4,1,2,
3 5,4,1,3,2 5,4,2,1,3 5,4,2,3,1 5,4,3,1,2 5,4,3,2,1
>> print rotation-count
1
>> print rotation-file/1
1,2,3,4,5
>> print rotation-file/rotation-count
** Script Error: Invalid path value: rotation-count.
** Where: print rotation-file/rotation-count
>>
Ryan Smith
Storage Operations Center
[smithry--us--ibm--com]
303-924-3766