Is D 0.163 D 1.0?
Andrei Khropov
andkhropov at nospam_mtu-net.ru
Tue Jul 25 05:18:01 PDT 2006
Derek wrote:
> If so, it means that the opCall paradigm will be removed from classes. Is
> that intentional?
>
> And I assume that if the class was declared as ...
>
> auto class A {}
>
> then every object declared with the class would have to be ..
>
> A a = A();
> or
> auto a = A();
>
> But how does this proposed syntax handle variable-length arrays?
>
> char[] a = read(filename);
>
> Is 'a' destroyed at end of scope?
>
> It seems to me that the implied 'destroy at end of scope' idea is not a
> good one. It needs explicit designation to make it clear to readers and
> coders alike. That must also help compilers in detecting coding mistakes
> too.
Yes, good point. I agree.
--
AKhropov
More information about the Digitalmars-d
mailing list