I was binding some c code and needed to use null pointer.
Obviously 0 didn't work (it's an int, not a pointer!) but then I
remembered c_hack
and null[T] and did this:

proc do_something: &long_type_name = "c_do_something($1);";

var x : long_type_name;
do_something(&x);
/* ... */
do_something(null[long_type_name]);

Do I really have to type null[long_type_name]? Why can't I just type null?

RF

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to