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;
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
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);
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