package and virtual
Mike Parker
aldacron at gmail.com
Thu Mar 1 05:43:34 PST 2012
On 3/1/2012 4:26 PM, 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. Primarily for utility declarations shared among modules, but
not intended for the outside world. For example, DerelictGL's extension
loader. Incidentally, before reading this I just finished refactoring
another project to use some package-protected stuff. But I've never had
a need (yet) to override anything with package protection outside of the
same module.
More information about the Digitalmars-d
mailing list