Using an uninitialized structure

Sean Kelly sean at f4.ca
Mon Sep 3 10:00:23 PDT 2007


B.Schulte wrote:
> Hi.
> 
> I don't get it working. So I ask here.
> 
> There is the problem:
> 
> CHAR_INFO buffer[];
> buffer.length = 100;
> foreach( inout CHAR_INFO ci; buffer ) { ci.Char.AsciiChar = ' '; ci.Attributes=7; }

Unfortunately, I don't think there's a way to use the "=void" when 
initializing arrays.


Sean



More information about the Digitalmars-d mailing list