www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Lost in Translation: Encapsulation

reply Mike Parker <aldacron gmail.com> writes:
Last week, inspired by another discussion in these forums about 
D's private-to-the-module form of encapsulation, I spent a few 
hours putting a new article together for the blog. Ali, Joakim, 
Nicholas helped me get it in shape.

The blog:
https://dlang.org/blog/2018/11/06/lost-in-translation-encapsulation/

Reddit:
https://www.reddit.com/r/programming/comments/9up2yo/lost_in_translation_encapsulation_in_d/
Nov 06
next sibling parent David Gileadi <gileadisNOSPM gmail.com> writes:
On 11/6/18 8:14 AM, Mike Parker wrote:
 Last week, inspired by another discussion in these forums about D's 
 private-to-the-module form of encapsulation, I spent a few hours putting 
 a new article together for the blog. Ali, Joakim, Nicholas helped me get 
 it in shape.
 
 The blog:
 https://dlang.org/blog/2018/11/06/lost-in-translation-encapsulation/
 
 Reddit:
 https://www.reddit.com/r/programming/comments/9up2yo/lost_in_translation
encapsulation_in_d/ 
As usual, an excellent bit of writing containing things I wasn't aware of. Thanks!
Nov 06
prev sibling next sibling parent Joakim <dlang joakim.fea.st> writes:
On Tuesday, 6 November 2018 at 15:14:55 UTC, Mike Parker wrote:
 Last week, inspired by another discussion in these forums about 
 D's private-to-the-module form of encapsulation, I spent a few 
 hours putting a new article together for the blog. Ali, Joakim, 
 Nicholas helped me get it in shape.

 The blog:
 https://dlang.org/blog/2018/11/06/lost-in-translation-encapsulation/

 Reddit:
 https://www.reddit.com/r/programming/comments/9up2yo/lost_in_translation_encapsulation_in_d/
Nicely done, think this could do well on proggit/HN/lobste.rs.
Nov 06
prev sibling next sibling parent 12345swordy <alexanderheistermann gmail.com> writes:
On Tuesday, 6 November 2018 at 15:14:55 UTC, Mike Parker wrote:
 Last week, inspired by another discussion in these forums about 
 D's private-to-the-module form of encapsulation, I spent a few 
 hours putting a new article together for the blog. Ali, Joakim, 
 Nicholas helped me get it in shape.

 The blog:
 https://dlang.org/blog/2018/11/06/lost-in-translation-encapsulation/

 Reddit:
 https://www.reddit.com/r/programming/comments/9up2yo/lost_in_translation_encapsulation_in_d/
You just describe how package access attribute works better then the spec itself! Good job. -Alex
Nov 06
prev sibling parent Dennis <dkorpel gmail.com> writes:
On Tuesday, 6 November 2018 at 15:14:55 UTC, Mike Parker wrote:
 [...]
I noticed that the `export` visibility attribute is curiously not mentioned anywhere in the article. I suppose it is not relevant to the encapsulation story, but it is weird to see it in the spec (https://dlang.org/spec/attribute.html#visibility_attributes) among public, private etc. but not the article.
Nov 06