skaller wrote:
> On Sun, 2006-10-29 at 16:05 +1100, 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.
>>     
>
>   
>> fun main () =
>> {
>>     var ar <- new vArray[double](0.0);
>>
>>     adder(ar, 4, 88.1);
>>     adder(ar, 5, 83.1);
>>     pr_treet(ar.arr);
>>     endl;
>>     return 0;
>> }
>>
>> System::exit (main());
>>     
>
> Gak :)
>
> Either you should use a procedure, or a generator: functions
> aren't allowed to have side effects.
>
> this should have been detected though: the object constructor
> is encoded as:
>
>       ar =  (FLX_NEWP(vArray)());
>       FLX_SET_PC(7186)
>       return (FLX_NEWP(_ctor_vArray)(FLX_FPAR_PASS ar))
>       ->call(this, 0.0);
>     FLX_CASE_LABEL(7186)
>
>
> which requires:
>
>   FLX_START_SWITCH
>
> which switches on the procedures program counter 
> variable 'pc' .. only a function doesn't have one
> of them .. this is a bug.
>
> Generators are automatically 'noinline' at the moment,
> and they DO get a program counter (because they can yield
> and be resumed).
>
> Note that if you make a procedure called 'flx_main' like:
>
>       proc flx_main {
>               ...
>       }
>
> it will be run automatically (like C's main function).
>   

Um, the flx_main thing ... apparently not.

I tried "proc flx_main {...}" and "proc flx_main() {...}" and nada.

Jonathan.

-------------------------------------------------------------------------
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

Reply via email to