[Issue 6648] Only call invariant once for a tree of public functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 11 18:52:46 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6648


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies at gmail.com
            Summary|fix invariant               |Only call invariant once
                   |                            |for a tree of public
                   |                            |functions
           Severity|normal                      |enhancement


--- Comment #1 from yebblies <yebblies at gmail.com> 2011-09-12 11:52:29 EST ---
I've changed the title to better reflect what (I think) you're asking for. 
Please correct if I've missed the point.

Note that the compiler is working exactly to spec here (for once), so this is
an enhancement.

An alternative approach is to make bar private/protected, or put the body of
bar into a private/protected function that both foo and bar can call.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list