The following never works and can't be made to work: var ch = ischannel[unit] (); var u = read ch;
The reason is: you cannot use the unit value u, so the read is optimised away. Even C_hack::ignore(u); fails with a diagnostic, because Felix tries to optimise away all units, and there's a diagnostic in the code generator to report when the front end failed to do this. The only way to do it is to use a supervisor call, and it isn't clear even that will work. -- john skaller skal...@users.sourceforge.net http://felix-lang.org ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language