1. Ver 4.0 parsing error
- Posted by bernie Sep 05, 2008
- 757 views
-- 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) ^
2. Re: Ver 4.0 parsing error
- Posted by euphoric (admin) Sep 05, 2008
- 782 views
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)
3. Re: Ver 4.0 parsing error
- Posted by bernie Sep 05, 2008
- 780 views
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