www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - This week in D #13: =void tip, ddmd, if(arr) warn, dconf registration

reply "Adam D. Ruppe" <destructionator gmail.com> writes:
http://arsdnet.net/this-week-in-d/apr-12.html

http://www.reddit.com/r/d_language/comments/32ek17/this_week_in_d_13_void_tip_ddmd_ifarr_warn_dconf/

https://twitter.com/adamdruppe/status/587459000729473024
Apr 12 2015
next sibling parent "Vlad Levenfeld" <vlevenfeld gmail.com> writes:
On Monday, 13 April 2015 at 03:37:17 UTC, Adam D. Ruppe wrote:
 http://arsdnet.net/this-week-in-d/apr-12.html

 http://www.reddit.com/r/d_language/comments/32ek17/this_week_in_d_13_void_tip_ddmd_ifarr_warn_dconf/

 https://twitter.com/adamdruppe/status/587459000729473024
Did not know about void initialization, that was really helpful.
Apr 12 2015
prev sibling next sibling parent reply "Marc =?UTF-8?B?U2Now7x0eiI=?= <schuetzm gmx.net> writes:
On Monday, 13 April 2015 at 03:37:17 UTC, Adam D. Ruppe wrote:
 http://arsdnet.net/this-week-in-d/apr-12.html

 http://www.reddit.com/r/d_language/comments/32ek17/this_week_in_d_13_void_tip_ddmd_ifarr_warn_dconf/

 https://twitter.com/adamdruppe/status/587459000729473024
The example in the first point of "void initialization" is wrong: YourStruct s = YourStruct(); With ` disable this()`, this doesn't work either. But this does: YourStruct s = YourStruct.init; About point 3, the following should be added so as not to mislead beginners: This is assignment, not construction! This is an important distinction, because your type's opAssign() and ~this() can then be invoked on an uninitialized object. They need to be aware of that possibility.
Apr 13 2015
parent "Adam D. Ruppe" <destructionator gmail.com> writes:
On Monday, 13 April 2015 at 09:15:30 UTC, Marc Schütz wrote:
 The example in the first point of "void initialization" is 
 wrong:
Oh duh, still need opCall or some other factory function for that. Oops.
 About point 3, the following should be added so as not to 
 mislead beginners:
Indeed, added.
Apr 13 2015
prev sibling parent "albatroz" <rmcjustino gmail.com> writes:
Can I suggest to have a summary/list of the last added projects 
to code.dlang.org.

On Monday, 13 April 2015 at 03:37:17 UTC, Adam D. Ruppe wrote:
 http://arsdnet.net/this-week-in-d/apr-12.html

 http://www.reddit.com/r/d_language/comments/32ek17/this_week_in_d_13_void_tip_ddmd_ifarr_warn_dconf/

 https://twitter.com/adamdruppe/status/587459000729473024
Apr 14 2015