1. Ver 4.0 parsing error

-- 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) 
         ^ 
new topic     » topic index » view message » categorize

2. Re: Ver 4.0 parsing error

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 message » categorize

3. Re: Ver 4.0 parsing error

euphoric said...
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) 

Yes they have it both ways in the notes in map.e.
Its a procedure.
Thanks

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu