Re: Translator problem with Eu 4.0
- Posted by mattlewis (admin) Dec 22, 2008
- 897 views
unfortunately IDE104 is not translated and compiled correctly since rev 1265 (tail recursion). I tried again with rev 1271 but the result is the same: IDE runs ok when interpreted but when translated the creation of the windows for Toolbox, Property, Project etc does not work correctly. They do not appear at the expected location and the behaviour is very strange.
Wow, that is a monster application! Do you happen to know the last known good rev? Using 1271, I only see one tail call (deleteTheControl), and it's not called during the initialization phase, so I suspect that it's something else that's causing the problems.
I tried to run IDE with eu.ex but there is also a strange result:
index out of bounds in match_from()
the corresponding code in Win32lib.ew is:
if iIconInfo or match(".ICO", upper(pCaption)) = (length(pCaption)-3)
As Win32lib.ew uses the include files of Eu 3.1.1 I wonder why the error message shows match_from and not match? Could there be a relation between the wrong error message and the incorrect translating of IDE?
This appears to be a result of a change that was made to only emit match_from(), since match() is just a special case. But the bounds checking is slightly different in execute.e, and since the default of 1 is supplied as the 'from' parameter for a regular match(), you get that erroneous error message.
Btw hopefully you don't mind if I only report about problems and do not mention the many points which work fine or will make programming with Euphoria more comfortable. But in the moment I am still in backwards compatibility mode, at least as long this should be possible.
It's not a problem, but the positive comments are definitely appreciated.
Matt