Small feature request
Matti Niemenmaa
see_signature at for.real.address
Sat Mar 29 13:19:35 PDT 2008
Koroskin Denis wrote:
> Look at this class.
>
> class Buffer
> {
> private int bufferSize = 4096;
> private void[bufferSize.init] buffer = void;
> }
>
> What's the capacity of buffer upon object construction?
>
> I expect that buffer.length == 4096, since bufferSize == 4096, but get
> buffer.length == 0, since bufferSize.init == int.init.
> It works not as expected and confuses a little. Do I have any chanse
> this will be fixed anytime, or is it intended?
This is one of the few post-1.0 changes that broke existing code. I really wish
it were changed back, but I doubt it will be.
--
E-mail address: matti.niemenmaa+news, domain is iki (DOT) fi
More information about the Digitalmars-d
mailing list