Re: Ver 4.0 parsing error

new topic     » goto parent     » topic index » view thread      » older message » newer message
bernie said...
-- file name j.exw contains: 
-- Using WIN98 using SVN 1121 
-- This code complies with the docs.  
 
include std/map.e 
 
map ages = new()  
 
ages = put(ages, "Andy", 12) 
 
 
if getc(0) then end if 
-- end file j.exw    
    
-- Displays this error: 
 
C:\WMOTOR\INCLUDE\J.EXW:6 
Syntax error - expected to see an expression, not a procedure 
ages = put(ages, "Andy", 12) 
         ^ 

from what i understand, derek said that put() is no longer a function. maybe the docs are a little behind. you just do

put(ages,"Andy",12) 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu