[Issue 5217] Permit static+abstract

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 14 16:22:33 PST 2010


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


Jonathan M Davis <jmdavisProg at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmx.com


--- Comment #1 from Jonathan M Davis <jmdavisProg at gmx.com> 2010-11-14 16:21:20 PST ---
I'm afraid that you're going to have to be more clear in what you mean.

abstract indicates that a function does not have a body and that derived types
must give an implementation if they are to be instantiatable.

static functions have nothing to do with the virtual table, and so they don't
care about base or derived types. They're essentially just namespaced within a
class or struct. abstract has no meaning for them.

Templates _always_ result in code. What does it matter if that code is a static
function, within a class, a struct, or whatever? An abstract template makes no
sense. Even if you're instantiating a template within a base class, it must be
fully instantiated within that class regardless of whether any classes will
ever be derived from that class.

What are you trying to do here? You need to be clearer, because as it stands,
what you're asking for makes no sense.

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