package and virtual

Martin Nowak dawg at dawgfoto.de
Thu Mar 1 16:17:48 PST 2012


On Thu, 01 Mar 2012 17:11:14 +0100, Alex Rønne Petersen  
<xtzgzorex at gmail.com> wrote:

> On 01-03-2012 08:26, Jacob Carlborg wrote:
>> On 2012-03-01 01:53, Jonathan M Davis wrote:
>>> package functions are currenly non-virtual.
>>>
>>> The spec claims that "all non-static non-private non-template
>>> member func­
>>> tions are virtual," which would mean that package is supposed to be
>>> virtual.
>>> But from what I recall, the plan is to leave package as non-virtual.
>>> So, is
>>> that indeed the case and the spec needs to be fixed, or is package
>>> going to be
>>> made virtual at some point?
>>>
>>> - Jonathan M Davis
>>
>> Is anyone even using "package"? I've basically never used it.
>>
>
> I use it. It's useful when you wish to create higher-level wrappers  
> around stuff. (Interestingly, I only ever use package for constructors.)
>
Because 'package' doesn't work for anything but functions?


More information about the Digitalmars-d mailing list