My Reference Safety System (DIP???)

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Mon Mar 2 16:35:00 PST 2015


On Tuesday, 3 March 2015 at 00:11:36 UTC, Zach the Mystic wrote:
> On Tuesday, 3 March 2015 at 00:02:48 UTC, deadalnix wrote:
>>> What do you think? How many times do you normally pass a 
>>> global?
>>
>> I fail too see how t being global vs t being a local that is 
>> doubly passed change anything.
>
> Within the function, the global passed as a parameter creates 
> an alias to the global. Fortunately, Andrei Fermat may have 
> just solved the issue:
>
> http://forum.dlang.org/post/md2pub$nqn$1@digitalmars.com

This does not solve anything as postblit only increase refcount 
so it does not make any sense that it deletes the payload.


More information about the Digitalmars-d mailing list