Do non-member functions improve encapsulation in D?
Andrej Mitrovic via Digitalmars-d
digitalmars-d at puremagic.com
Mon Apr 21 07:07:06 PDT 2014
On 4/21/14, Steven Schveighoffer via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> Reasons off the top of my head not to make them module functions
Here's another one, the bug report is about enums but it showcases an
issue with module-scoped functions taking struct parameters (in short:
function hijacking protection makes defining module-scoped functions
problematic):
https://issues.dlang.org/show_bug.cgi?id=10846
More information about the Digitalmars-d
mailing list