digitalmars.D.announce - This week in D #13: =void tip, ddmd, if(arr) warn, dconf registration
- Adam D. Ruppe (3/3) Apr 12 2015 http://arsdnet.net/this-week-in-d/apr-12.html
- Vlad Levenfeld (2/5) Apr 12 2015 Did not know about void initialization, that was really helpful.
- "Marc =?UTF-8?B?U2Now7x0eiI=?= <schuetzm gmx.net> (11/14) Apr 13 2015 The example in the first point of "void initialization" is wrong:
- Adam D. Ruppe (4/8) Apr 13 2015 Oh duh, still need opCall or some other factory function for
- albatroz (3/6) Apr 14 2015 Can I suggest to have a summary/list of the last added projects
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
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/587459000729473024Did not know about void initialization, that was really helpful.
Apr 12 2015
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/587459000729473024The 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
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
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