Property discussion wrap-up
Zach the Mystic
reachBUTMINUSTHISzach at gOOGLYmail.com
Wed Jan 30 09:48:19 PST 2013
On Wednesday, 30 January 2013 at 17:35:25 UTC, Dmitry Olshansky
wrote:
>> 2) How much code
>> breakage?
>
> A lot + subtly wasting memory.
I still have to read your other comments, but the issue of
wasting memory has already been addressed by suggesting that the
compiler detect that absence of any actual data in the struct and
prohibit taking its address or referring to "this" except perhaps
in the case of "alias someFunction this" to allow it to call that
function transparently. It would not give the function a pointer
or anything, the goal being to truly harness the power of
struct's semantics without paying a price in performance of any
kind.
More information about the Digitalmars-d
mailing list