On 23/09/2013, at 9:06 PM, john skaller wrote:

And the next magic:

var bits = true, /**/ true, false, true, /**/ true;

var q = bits :>> (2 * 8 * 2);
println$ (q . 0) :>> int;
println$ (q . 1) :>> int;
println$ (q . 2) :>> int;

which shows how to get any "slice" out.

The bad news: this coercion works but gives a warning.

The other bad new: you cannot print q.
(only bool = 2 has a str routine)

--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to