A colleague kindly reminded me of the syntax that I was grasping at in my
last mail. Revisiting the examples I was trying to write:
On Thu, 3 Mar 2016, Brad Chamberlain wrote:
> proc foo(x...string, y) {
Should have been written:
proc foo(x: string..., y:real) {
writeln("got x = ", x);
writeln("got y = ", y);
}
foo("hi", "there", 3.0);
And happily, this works as expected today. The second:
> proc foo(x...string, y...int) {
should have been written:
proc foo(x: string..., y: int...) {
and, unsurprisingly, this gets the same segfault as the untyped case.
-Brad
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers