[Issue 15839] this.outer is of wrong type
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Tue Mar 29 15:33:31 PDT 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15839
Martin Nowak <code at dawg.eu> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at dawg.eu
--- Comment #6 from Martin Nowak <code at dawg.eu> ---
(In reply to Kenji Hara from comment #4)
> Note that, compiler cannot determine whether the start() makes a closure
> environment or not at the place where 'this.outer' is used. Because of that,
> the .outer property should have void* type, to be consistent with the
> lexical scope nesting.
But this.outer always refers to the enclosing function even if no closure is
required, right? A this.outer that is typed as void* and either refers to an
enclosing function or an enclosing class would be highly confusing.
--
    
    
More information about the Digitalmars-d-bugs
mailing list