Menu

#3 set parsing error

open
Script (10)
5
2004-01-13
2004-01-13
Anonymous
No

MWEdit v0.5.6 gives a Error 1007: Function does not accept argument #1 when compiling something like

set foo to ( GetAlchemy + 1 )

Is it seeing this as

set foo to ( GetAlchemy +1 )

There's a workaround of course, I could have said

set foo to ( 1 + GetAlchemy )

I dont know how to fix this since therea no way to indicate which tokens are supposed to be arguments and which are not, maybe using the commas, but who uses the commas?
Eg

set foo to ( GetAlchemy + 1 ) ; this is not an argument
vs
set foo to ( GetAlchemy, +1 ) ; this is an argument

Discussion


Log in to post a comment.