On Wed, 2006-11-01 at 18:06 +1100, Jonathan Kelly wrote:

> OK, I can see the functions, but how to expose them, I have no idea. 
> Could you help out?

////////////////////////////////////////////
#import <flx.flxh>

fun mem: 1 -> ulong = 
  "(PTF gc)->get_allocation_amt()" 
  requires property "needs_gc"
;

print$ mem(); endl;
//////////////////////////////////////////

The requirement is there to ensure the context of use
has access to the collector, via the thread frame pointer
PTF .. the fact this fails sometimes is the bug you found
in the array.flx code.


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

Reply via email to