Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Invalid path value
Pages: [1] Print
Author Topic: Invalid path value  (Read 498 times)
kpeters
Newbie
*
Offline Offline

Posts: 24


View Profile
Invalid path value
« on: August 04, 2007, 11:49:59 AM »

Hi ~

was quite surprised just now that this does abort with "Invalid path value":

Code:
f: [ 1 2 3 ]
i: 2
f/i

What does one do if a construct like this is needed? I am using
Code:
pos: first skip f i

Is that really a good way?

TIA,
Kai
« Last Edit: August 04, 2007, 12:13:38 PM by kpeters » Logged
Sunanda
Full Member
***
Offline Offline

Posts: 100


View Profile
Re: Invalid path value
« Reply #1 on: August 04, 2007, 02:33:50 PM »

Try this notation (note the colon):
Code:
f/:i
== 2
Logged
kpeters
Newbie
*
Offline Offline

Posts: 24


View Profile
Re: Invalid path value
« Reply #2 on: August 04, 2007, 09:23:07 PM »

Rebol is *always* simpler & more powerful than I think - thanks!

Kai
Logged
Bertrand
Newbie
*
Offline Offline

Posts: 3


View Profile
Re: Invalid path value
« Reply #3 on: August 07, 2007, 07:47:21 AM »

Try this notation (note the colon):
Code:
f/:i
== 2

Code:
>> f/(i)
== 2
works too !
Wink
Logged

<Oo~ Bertrand ~oO>
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Invalid path value
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 15, 2008, 10:12:54 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2248 Posts in 586 Topics by 2046 Members
Latest Member: gedyGunny

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc