http://d.puremagic.com/issues/show_bug.cgi?id=481



--- Comment #6 from bearophile_h...@eml.cc 2010-12-14 13:24:26 PST ---
(In reply to comment #5)

> But then we're not looking for a syntax that would also allows us to use auto
> (as in "auto a = [1,2,3,4];"), is that what we're saying?

Now I think I understand what you mean. You mean something like:
auto[$] a = [1,2,3,4];
==> int[4]
So auto lets the D compiler infer the element type and count the items, but the
result is a fixed-length array still.

I think this case is not common enough to deserve a third syntax.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to