More on C++ stack arrays

Jonathan M Davis jmdavisProg at gmx.com
Thu Oct 24 11:22:38 PDT 2013


On Wednesday, October 23, 2013 22:40:55 Walter Bright wrote:
> 'void' initialization means uninitialized. This applies to fields, as well,
> meaning that the .init value of an aggregate with void initializations will
> have unreliable values in those locations.
> 
> This is why 'void' initializers don't belong in safe code, and reading
> 'void' initialized data will get you implementation defined data.

Agreed. But there's a significant difference between @system and illegal, and 
deadalnix was claiming that such init values were illegal per the language 
spec, which is what I was objecting to.

- Jonathan M Davis


P.S. Please quote at least _some_ of the message when replying. Without that, 
if the threading gets screwed up, or if someone doesn't use a threaded view, 
it's a guessing game as to which post you're replying to. Thanks.


More information about the Digitalmars-d mailing list