Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Cannot use path on char! value

 [1/2] from: vache::bluejellybean::com at: 30-Jun-2001 14:00


Before I upgraded to the newest version of /view, the following code worked... source: to-hash read/lines source-file forall source [ if equal? source/1/1 #"#" [ ... unrelated code ... ] ] I now get the error "Cannot use path on char! value" at the if statement. The code is supposed to be comparing the first character of the first line (source/1/1) to "#". It worked before! :\

 [2/2] from: brett:codeconscious at: 1-Jul-2001 11:07


>> source: ["one" "two" "three"]
== ["one" "two" "three"]
>> source/1/1
== #"o"
>> if equal? source/1/1 #"#" [print "it was equal to #"]
== none Are your sure you haven't changed source to be a string instead of a block of strings? Brett.