www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Re: dmd 1.042 and 2.027 releases

reply bearophile <bearophileHUGS lycos.com> writes:
Walter Bright:
 The large volume of bug fixes is because a lot of people contributed 
 patches. Thanks!

Because you have given them a chance to do it :-) I have tested 1.042 and runs all my unittests fine.
Added alias this<

I'd like a bit more explanations/examples of the usage of this feature. Bye, bearophile
Apr 01 2009
next sibling parent reply "Nick Sabalausky" <a a.a> writes:
"bearophile" <bearophileHUGS lycos.com> wrote in message 
news:gqvi1g$2uin$1 digitalmars.com...
 Walter Bright:
 The large volume of bug fixes is because a lot of people contributed
 patches. Thanks!

Because you have given them a chance to do it :-) I have tested 1.042 and runs all my unittests fine.
Added alias this<

I'd like a bit more explanations/examples of the usage of this feature.

Yes, I'm wondering if this will finally let us do something along the lines of: template Foo() { alias "blah blah" this; // Was: const char[] Foo = "blah blah"; }
Apr 01 2009
parent "Nick Sabalausky" <a a.a> writes:
"Nick Sabalausky" <a a.a> wrote in message 
news:gr09qr$1793$1 digitalmars.com...
 Yes, I'm wondering if this will finally let us do something along the 
 lines of:

 template Foo()
 {
    alias "blah blah" this;
    // Was: const char[] Foo = "blah blah";
 }

Or, perhaps more likely, wondering if it'll let us do something like this: template Foo(T) { // Was: alias Bar!(T) Foo; alias Bar!(T) this; }
Apr 01 2009
prev sibling next sibling parent Walter Bright <newshound1 digitalmars.com> writes:
bearophile wrote:
 I'd like a bit more explanations/examples of the usage of this feature.

The short answer - makes "wrapper" structs easy.
Apr 01 2009
prev sibling parent reply Brad Roberts <braddr puremagic.com> writes:
bearophile wrote:
 Walter Bright:
 The large volume of bug fixes is because a lot of people contributed 
 patches. Thanks!

Because you have given them a chance to do it :-)

Actually, with LDC or GDC that chance has been there for ages. The compilable release of DMD makes it easier. I know I used GDC several times over the years to debug and fix a number of issues as well as develop and test a new feature. Later, Brad
Apr 01 2009
parent Don <nospam nospam.com> writes:
Brad Roberts wrote:
 bearophile wrote:
 Walter Bright:
 The large volume of bug fixes is because a lot of people contributed 
 patches. Thanks!


Actually, with LDC or GDC that chance has been there for ages.

Not on Windows. The
 compilable release of DMD makes it easier.  I know I used GDC several
 times over the years to debug and fix a number of issues as well as
 develop and test a new feature.
 
 Later,
 Brad

Apr 02 2009