the best language I have ever met(?)
Patric Dexheimer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Nov 21 04:08:30 PST 2016
On Saturday, 19 November 2016 at 00:47:00 UTC, ketmar wrote:
> On Saturday, 19 November 2016 at 00:28:36 UTC, Stefan Koch
> wrote:
>> Please don't post non-d.
> it slipped accidentally, sorry. ;-)
>
> for OP: `uint[2] a = [42, 69];` is the correct syntax.
"uint[$] a = [42, 69];"
haha for a moment I thought that this was the way of D to create
a fixed-size array without explicit setting the size (like what u
can do in c++ :))
More information about the Digitalmars-d-learn
mailing list