Hi all,
What's the (planned) syntax for using type select on a union? I'm assuming
that this functionality isn't implemented yet, based on STATUS.devel, and
my attempts at guessing the syntax.
Something along these lines, perhaps?
union U {
var x : int;
var y : string;
}
var u : U;
u.x = 5;
type select u {
when U.x do writeln("x");
when U.y do writeln("y");
}
I'm in the process of familiarizing myself with chapel, and the
compiler/runtime codebase. I'll take a crack at implementing this
functionality if it isn't being worked on. I have some experience with such
things, and the code seems easy enough to follow.
Thanks,
Sean
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers