On Fri, 2007-04-13 at 14:08 +0100, Rhythmic Fistman wrote: > How do I "not" an int? > The following doesn't work for me. > > #import <flx.flxh> > > var blah = 0; > > blah = bnot blah;
Signed types don't support bitwise operations (even though Felix insists they're two's complement :) This works for me: ////////////////////////// #import <flx.flxh> var x = 0u; var y = bnot x; print$ y; endl; print$ int(y); endl; /////////////////////////// [EMAIL PROTECTED]:/work/felix/svn/felix/felix/trunk$ f noti 4294967295 -1 -- John Skaller <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Felix-language mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/felix-language