Re: IDE and eu4
- Posted by AndyDrummond Jul 12, 2009
- 1292 views
No, it's a library function. The key to this bug is that you have what is effectively the use of a forward type (int). It's declared somewhere as a global type, but that file isn't included by IDE_XPMmer.ew, which means that the interpreter cannot resolve it until the end of parsing.
The other key ingredient is that the parameter name is the same as some other routine. Here is a minimal example to display the bug:
procedure bar() end procedure procedure foo( int bar, int what ) end procedure type int( object i ) return integer( i ) end type
This has been entered as bug 2820451:
https://sourceforge.net/tracker/?func=detail&aid=2820451&group_id=182827&atid=902782
I seem to recall that Derek said he was going to be working with the IDE. Derek, have you done much with it? I looked at the sourceforge project page, and it doesn't show a svn repository, and the cvs repository is empty.
Matt
But "int" has been the same as "integer" for years - part of Win32Lib. It's used in many, many places, so why should it throw an error on this one? It does seem more likely that drawShape() has been defined somewhere else and doesn't like being redefined. But that begs the question why does it merely claims the argument list is badly formed? It looks perfectly standard stuff to me, but I haven't touched Eu4 at all - if the Eu3 to Eu4 shift is the problem.
If Derek does maintain IDE that would be absolutely great - but it is a major item to pick up. I know Judith would be delighted, as would I be. I am a programmer who codes for Windows with reluctance; IDE and Win32Lib make life very much simpler, and for it to be kept up would be ace. Hint, hint!
Andy