develooper Front page | perl.perl5.porters | Postings from January 2001

Re: One more patch for UTF8

Thread Previous | Thread Next
From:
Mark-Jason Dominus
Date:
January 9, 2001 15:36
Subject:
Re: One more patch for UTF8
Message ID:
20010109233654.3875.qmail@plover.com

Tony Cook says:
> If you have initializers for an aggregate type, but not for
> all elements of the aggregate, then those elements you didn't explicitly
> initialize are initialized implicitly as if they were static (ie. to
> zero).
> 
> See Initializers in C99 (I don't have my C90 standard on-hand, though it
> applied there too. I'm 99% sure it's true for K&R C too.)

K&R 2 page 219 says:

        If the array has fixed size, ... if there are fewer
        [initializers], the trailing members are initialized with 0.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About