www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Array initialization bug?

reply Drew McCormack <drewmccormack mac.com> writes:
Using gdc (1f) I get this message when:
multiarray.d(117): variable axisLengths is not a static and cannot have 
static initializer


for this line of code:
uint[2] axisLengths = [5, 10];
Apr 29 2004
parent Stewart Gordon <smjg_1998 yahoo.com> writes:
Drew McCormack wrote:
 Using gdc (1f) I get this message when:
 multiarray.d(117): variable axisLengths is not a static and cannot have 
 static initializer

Been reported plenty of times already and is a PendingPeeve. http://www.wikiservice.at/wiki4d/wiki.cgi?PendingPeeves D/26695 Stewart. -- My e-mail is valid but not my primary mailbox, aside from its being the unfortunate victim of intensive mail-bombing at the moment. Please keep replies on the 'group where everyone may benefit.
Apr 29 2004