dcollections ArrayList conating array of classes/structs

2010-06-30 Thread BLS
Hi, IMHO ArrayList has a bug. Just declaring ArrayList!B bl, raises an error. But maybe I am wrong.. Nevertheless I 've filed a ticket. In case that I switch from class to struct also std.algorithm is involved. class AListTest { alias ArrayList!B BList; BList bl;

Re: Mixing operations with signed and unsigned types

2010-06-30 Thread bearophile
Stewart Gordon: what you seem to be suggesting is that size_t be the same as ptrdiff_t. Yes, but an unsigned word type needs to be kept in the language. There is, however, another problem: signed types convert implicitly to unsigned types, though they do generate a warning if compiled with

Re: Class knowing its own Class

2010-06-30 Thread Tomek Sowiński
Dnia 30-06-2010 o 00:13:28 strtr st...@sp.am napisał(a): == Quote from Steven Schveighoffer (schvei...@yahoo.com)'s article On Tue, 29 Jun 2010 17:59:37 -0400, strtr st...@sp.am wrote: What is the pretty way to do something like this? Class C { void makeNew() { new typeof(this);

Re: Mixing operations with signed and unsigned types

2010-06-30 Thread Stewart Gordon
bearophile wrote: Stewart Gordon: snip If we also change array indices to be signed, it would break that code that sensibly uses unsigned types, which is probably worse. Yes, of course that code needs to be fixed after the change I have suggested. A breaking change means that some of the