On Sun, 2006-10-29 at 16:49 +1100, Jono wrote: > Jonathan Kelly wrote: > > Hi, > > > > not sure of the status of this, but perhaps it might be useful ... if > > you remove the "noinline" qualifier, you end up with cpp errors. > > > > Jonathan. > > > > > > There's definitely something happening ... I'm getting similar errors > when I add another function, and now, even if everything is noinlined, I > get the error. I can give another example if it's needed.
no, I know what the problem will be: the compiler has to keep track of which resources are needed: the thread frame, garbage collector, program counter, closures, etc etc. Depending on the result different styles of functions can be generated with various optimisations. An ordinary function CANNOT be resumed, so needs no program counter (other than the CPU's real one of course). however a class constructor is a procedure .. and they work in the general model by their class object being returned to the driver, which then resumes them. Looks like the compiler didn't recognize the constructor call as a procedure call inside a function .. if it did it would have 'run' the procedure instead of trying to pass it up to the driver. This is just another case of the implementation of classes being incomplete and largely untested .. plus I usually don't cheat heavily in test code, doing things like side-effects inside functions :) There should be more 'bad-test' cases: ones where we expect a Felix compiler diagnostic (rather than a C++ compile time error .. or worse .. the wrong result :) -- John Skaller <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Felix-language mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/felix-language
