On 15/12/2012, at 8:07 PM, john skaller wrote: > > ISSUE *** > > It should work but I get this: > > /Users/johnskaller/.felix/cache/text/Users/johnskaller/felix/./tfj.cpp:33:77: > fatal error: no matching constructor > for initialization of '::flx::rtl::unit' > ps = (::flx::rtl::unit*)new(*PTF gcp, ::flx::rtl::unit_ptr_map, true) > ::flx::rtl::unit (0); //assign
Fixed now, maybe... in test ... Felix tries to eliminate units. However, there are cases like the pchannel one where we have to write something even though we have no data to transmit: its the act of doing the transmission that matters. Felix just uses an empty struct unit {} for the unit type. However sometimes a pointer to it is replaced by NULL.. The idea is that there's never any need to dereference it, and doing so is an optimisation failure. I may have to undo that optimisation (read ch on a unit channel does work, even though it copies the unit value .. not sure why!) -- john skaller skal...@users.sourceforge.net http://felix-lang.org ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language