RE: [sv-ec] Abstract classes and virtual methods

From: Steven Sharp <sharp_at_.....>
Date: Sun Jan 22 2006 - 14:33:37 PST
>From: "Rich, Dave" <Dave_Rich@mentor.com>

>Maybe we need to
>say the presence of a default needs to match, but not the expression
>itself.

A little thought shows that this part is required.  The caller can
leave out an argument only when there is a default.  How can the
compiler determine whether it is legal for the caller to leave out
an argument to a virtual method, when it doesn't know which
implementation will be called until runtime, unless all of them
must match?  Surely you aren't suggesting that this be a runtime
check?

Steven Sharp
sharp@cadence.com
Received on Sun Jan 22 14:33:48 2006

This archive was generated by hypermail 2.1.8 : Sun Jan 22 2006 - 14:35:40 PST