July 09, 2003 passing static arrays as arguments | ||||
---|---|---|---|---|
| ||||
The following doesn't work: void foo(ubyte[] a) { ... } ... foo( [3,4] ); ------------------------- Carlos Santander --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.497 / Virus Database: 296 - Release Date: 2003-07-04 |
July 09, 2003 Re: passing static arrays as arguments | ||||
---|---|---|---|---|
| ||||
Posted in reply to Carlos Santander B. | "Carlos Santander B." <carlos8294@msn.com> wrote in message news:beg1m9$1bul$1@digitaldaemon.com... > The following doesn't work: > > void foo(ubyte[] a) { ... } > ... > foo( [3,4] ); That's because array literals are not part of the language (yet). |
Copyright © 1999-2021 by the D Language Foundation