winxed
winxed copied to clipboard
Quoted method calls get double quoted
obj.'!meth'() in winxed becomes obj.''!meth''() in PIR. I'm guessing that the quoted name is how I'm supposed to call methods with non-identifier names, but the extra quotes causes the PIR to be uncompilable.
Such syntax is not really supported, even if it works in some cases. You can use the indirect call syntax:
obj.*'!meth'()
When the method is a const string, like in this case, it gets optimized to a direct call.
I had not seen that syntax. Very useful.
However I'd argue that obj.'!meth' compiling in Winxed but doing nothing useful in the resultant PIR could be considered a bug.