[Dlang-internal] DIP1000 discussion and testing
meppl via Dlang-internal
dlang-internal at puremagic.com
Fri Oct 21 11:43:33 PDT 2016
On Friday, 21 October 2016 at 15:38:39 UTC, Dicebot wrote:
>
> 2) The whole thing is very disappointing ...
> ... won't allow easy skipping of reference count inc/dec - ...
Isn't that - in the short term - impossible anyway? If a struct
leaves the scope the reference counter has to be increased. But
how does compiled code of a library know, if the foreign struct
is an RC-object - without doing any runtime checks? So, any
function has to exist twice, one time for RC and one time for
no-RC?
I mean, it's probably a big topic that doesn't have to be solved
in that DIP, too.
More information about the Dlang-internal
mailing list