[Issue 5140] Add __FUNCTION__

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 11 01:55:13 PST 2013


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



--- Comment #10 from bearophile_hugs at eml.cc 2013-01-11 01:54:52 PST ---
(In reply to comment #9)
> I simply don't see any need to refer to a function anonymously when making a
> recursive call. You can just use its name like you do anywhere else that you
> call it. The _only_ advantage that I see is that you have fewer lines of code
> to change when you change the function's name, but search and replace takes
> care of that quite easily.

Do you mean you wish/prefer to write OOP like this in D?


class Foo {
    Foo(int x) {...}
    void bar(Foo f) {
        Foo g = new Foo(5);
        ...
    }
}

-- 
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