Re: Expected parameter Name

new topic     » goto parent     » topic index » view thread      » older message » newer message
sethdomain said...

Hey there it comes up as:

C:winlib32\include\win32lib.ew:4033 
found reserved word "routine" but was expecting parameter instead. 
global procedure set handler(object id, object htype, object routine) 
I hope this is what you meant, but please let me know if there is anything else you need. Ive tried checking the path but cant see an error.

In euphoria v4, routine has become a reserved word. There are a few other gotchas along this line that seem to commonly affect legacy code. You can fix this by changing the variable's name slightly (e.g., by adding a trailing underscore).

Here is a list of new keywords in 4.0 (from keylist.e):

	{"continue",  SC_KEYWORD, CONTINUE,  0, 0, 0}, 
	{"ifdef",     SC_KEYWORD, IFDEF,     0, 0, 0}, 
	{"elsedef",   SC_KEYWORD, ELSEDEF,   0, 0, 0}, 
	{"elsifdef",  SC_KEYWORD, ELSIFDEF,  0, 0, 0}, 
	{"label",     SC_KEYWORD, LABEL,     0, 0, 0}, 
	{"loop",      SC_KEYWORD, LOOP,      0, 0, 0}, 
	{"until",     SC_KEYWORD, UNTIL,     0, 0, 0}, 
	{"entry",     SC_KEYWORD, ENTRY,     0, 0, 0}, 
	{"break",     SC_KEYWORD, BREAK,     0, 0, 0}, 
	{"retry",     SC_KEYWORD, RETRY,     0, 0, 0}, 
	{"enum",      SC_KEYWORD, ENUM,      0, 0, 0}, 
	{"export",    SC_KEYWORD, EXPORT,    0, 0, 0}, 
	{"switch",    SC_KEYWORD, SWITCH,    0, 0, 0}, 
	{"case",      SC_KEYWORD, CASE,      0, 0, 0}, 
	{"override",  SC_KEYWORD, OVERRIDE,  0, 0, 0}, 
	{"goto",      SC_KEYWORD, GOTO,      0, 0, 0}, 
	{"public",    SC_KEYWORD, PUBLIC,    0, 0, 0 }, 
	{"fallthru",  SC_KEYWORD, FALLTHRU,  0, 0, 0}, 

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu