Tango vs Phobos

Bruno Medeiros brunodomedeiros+spam at com.gmail
Mon Aug 18 10:34:49 PDT 2008


Lars Ivar Igesund wrote:
> Bruno Medeiros wrote:
> 
>> Sean Kelly wrote:
>>> Bruno Medeiros wrote:
>>>> But does delegate usage cause that much erroneous outer variable heap
>>>> allocation? (by erroneous, I mean in situations were it would not be
>>>> necessary)
>>>  From what I've been told, it does.  But I haven't personally tested D
>>> 2.0 enough to say.
>>>
>> Is there any bug report or code sample of such situation? I recall you
>> mentioning this problem before, but I haven't seen any concrete example
>> so far. (not saying there isn't ;) )
> 
> I believe others have shown that it can disrupt normal running.
> 

I was asking for a piece of code were the compiler would unnecessarily 
heap-allocate a local (and not a situation where doing so would botch up 
a program).
But in reading Frank Benoit's post in the full closure thread below, 
I've already seen one meanwhile. I didn't know the compiler 
heap-allocated a local in every situation where a local is used as an 
outer variable. That indeed puts a serious burden on the use of scoped 
closures :(

-- 
Bruno Medeiros - Software Developer, MSc. in CS/E graduate
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D



More information about the Digitalmars-d mailing list