This program crashes:
//-------
noinline proc f() {
var p = C_hack::cast[&(string * string)] (C_hack::xnew("Hello","World"));
println$ *p;
}
f();
collect();
println$ "Done";
//-----
BTW: sometimes I find the lack of a "new" function very annoying. xnew returns
a gcptr[] not an ordinary pointer and can't be dereferenced, hence the ugly
cast.
--
john skaller
[email protected]
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Felix-language mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/felix-language