Re: distinguish between classes and structures

2008-12-14 Thread Weed
Bill Baxter пишет: On Mon, Dec 15, 2008 at 3:35 PM, Weed wrote: Who can provide a link to an explanation about why in D has taken to distinguish between classes and structures? (Sorry for my bad English) The main justification is eliminating the slicing problem. http://cplusplusgems.blogspo

Re: distinguish between classes and structures

2008-12-14 Thread Bill Baxter
On Mon, Dec 15, 2008 at 3:35 PM, Weed wrote: > Who can provide a link to an explanation about why in D has taken to > distinguish between classes and structures? > > (Sorry for my bad English) > The main justification is eliminating the slicing problem. http://cplusplusgems.blogspot.com/2005/10/w

distinguish between classes and structures

2008-12-14 Thread Weed
Who can provide a link to an explanation about why in D has taken to distinguish between classes and structures? (Sorry for my bad English)

Re: Struct life time

2008-12-14 Thread Qian Xu
BCS wrote: Reply to Qian, Hi All, I am new to D community. I have some problems with TimeOfDay struct. I have defined a class: class Test { TimeOfDay* getTime() { return a_valid_timeofday_pointer; } Could you expand on this function?

Re: Struct life time

2008-12-14 Thread BCS
Reply to Qian, Hi All, I am new to D community. I have some problems with TimeOfDay struct. I have defined a class: class Test { TimeOfDay* getTime() { return a_valid_timeofday_pointer; } Could you expand on this function? The rest loo

Struct life time

2008-12-14 Thread Qian Xu
Hi All, I am new to D community. I have some problems with TimeOfDay struct. I have defined a class: class Test { TimeOfDay* getTime() { return a_valid_timeofday_pointer; } void setTime(TimeOfDay* value) { setVa