Jump to page: 1 28  
Page
Thread overview
DMD 1.035 and 2.019 releases
Sep 03, 2008
Walter Bright
Sep 03, 2008
BCS
Sep 03, 2008
Matti Niemenmaa
Sep 03, 2008
Walter Bright
Sep 04, 2008
Georg Wrede
Sep 05, 2008
Walter Bright
Sep 03, 2008
Lionello Lunesu
Sep 03, 2008
Extrawurst
Sep 03, 2008
Walter Bright
Sep 03, 2008
Extrawurst
Sep 03, 2008
Walter Bright
Sep 03, 2008
Extrawurst
Sep 03, 2008
bobef
Sep 03, 2008
0ffh
Sep 03, 2008
Walter Bright
Sep 03, 2008
bearophile
Sep 04, 2008
Walter Bright
Sep 04, 2008
bobef
Sep 04, 2008
Robert Fraser
Sep 04, 2008
Bill Baxter
Sep 04, 2008
Denis Koroskin
Sep 06, 2008
Russell Lewis
Sep 08, 2008
Bruno Medeiros
Sep 12, 2008
Bruno Medeiros
Sep 12, 2008
bearophile
Sep 04, 2008
Walter Bright
Sep 04, 2008
Leandro Lucarella
Sep 05, 2008
Christopher Wright
Sep 04, 2008
Moritz Warning
Sep 04, 2008
Bill Baxter
Sep 04, 2008
Walter Bright
Sep 04, 2008
Pablo Ripolles
Sep 04, 2008
Pablo Ripolles
Sep 04, 2008
Walter Bright
Sep 04, 2008
Pablo Ripolles
Sep 04, 2008
Bill Baxter
Sep 04, 2008
Walter Bright
Sep 04, 2008
Bill Baxter
Sep 05, 2008
Max Samukha
Sep 04, 2008
Georg Wrede
Sep 03, 2008
Ary Borenszweig
Sep 03, 2008
Mosfet
Sep 03, 2008
Extrawurst
Sep 03, 2008
Extrawurst
Sep 03, 2008
Walter Bright
Sep 03, 2008
Max Samukha
Sep 03, 2008
Walter Bright
Sep 03, 2008
Max Samukha
Sep 03, 2008
Walter Bright
Sep 03, 2008
dsimcha
Sep 03, 2008
Walter Bright
Sep 03, 2008
dsimcha
Sep 03, 2008
Sean Kelly
Sep 03, 2008
Walter Bright
Sep 03, 2008
Chris R. Miller
Sep 03, 2008
Walter Bright
Sep 04, 2008
Ary Borenszweig
Sep 04, 2008
Bill Baxter
Sep 04, 2008
Walter Bright
Sep 04, 2008
Walter Bright
Sep 04, 2008
davidl
September 03, 2008
Struct constructors!

http://www.digitalmars.com/d/1.0/changelog.html
http://ftp.digitalmars.com/dmd.1.035.zip

http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.019.zip
September 03, 2008
Reply to Walter,

> Struct constructors!
> 
> http://www.digitalmars.com/d/1.0/changelog.html
> http://ftp.digitalmars.com/dmd.1.035.zip
> http://www.digitalmars.com/d/2.0/changelog.html
> http://ftp.digitalmars.com/dmd.2.019.zip

bug soup!!!! :-)


September 03, 2008
Walter Bright wrote:
> Struct constructors!
> 
> http://www.digitalmars.com/d/1.0/changelog.html http://ftp.digitalmars.com/dmd.1.035.zip

Nice release, thanks! One nit: running "dmd" still says "Digital Mars D Compiler v1.034".

-- 
E-mail address: matti.niemenmaa+news, domain is iki (DOT) fi
September 03, 2008
Matti Niemenmaa wrote:
> Nice release, thanks! One nit: running "dmd" still says "Digital Mars D Compiler
> v1.034".

Fixed!
September 03, 2008
Great update once again, thanks!

> Special member functions _ctor, _dtor, etc., now have two leading _ in order to not conflict with the user identifier space.

Ow, just rename this/~this to ctor/dtor and get it over with! :O

L. 

September 03, 2008
Are opCalls deprecated now ? how do i call the ctor and how the opCall? a short example in the docs would have been nice.

nice release though. thanks for the bugfixing!

Walter Bright wrote:
> Struct constructors!
> 
> http://www.digitalmars.com/d/1.0/changelog.html
> http://ftp.digitalmars.com/dmd.1.035.zip
> 
> http://www.digitalmars.com/d/2.0/changelog.html
> http://ftp.digitalmars.com/dmd.2.019.zip
September 03, 2008
And why is it that there is no default ctor allowed for structs ?

struct S{this(){}} //constructor main.S.this default constructor not allowed for structs

Walter Bright wrote:
> Struct constructors!
> 
> http://www.digitalmars.com/d/1.0/changelog.html
> http://ftp.digitalmars.com/dmd.1.035.zip
> 
> http://www.digitalmars.com/d/2.0/changelog.html
> http://ftp.digitalmars.com/dmd.2.019.zip
September 03, 2008
To construct an object of struct S:

auto s = S(arguments);

Extrawurst wrote:
> Are opCalls deprecated now ? how do i call the ctor and how the opCall? a short example in the docs would have been nice.
September 03, 2008
yeah i figured, but if i have an opCall with the exact same arguments its never called, isnt that ambiguous ? what happens to opcall anyway ? will it sooner or later fall out ?

Walter Bright wrote:
> To construct an object of struct S:
> 
> auto s = S(arguments);
> 
> Extrawurst wrote:
>> Are opCalls deprecated now ? how do i call the ctor and how the opCall? a short example in the docs would have been nice.
September 03, 2008
Extrawurst wrote:
> And why is it that there is no default ctor allowed for structs ?

Good question. Because:

1. Having a default ctor conflicts with the concept of a .init property.

2. Using .init for default construction guarantees it can never throw, which is a useful property in many generic programming circumstances

3. It guarantees it is pure.

4. Nearly every instance of default construction I've seen would initialize it just to what .init does in D.

5. It eliminates the need for a member initializer syntax.
« First   ‹ Prev
1 2 3 4 5 6 7 8