← Back to team overview

dolfin team mailing list archive

Re: Expression and Function

 



kent-and@xxxxxxxxx wrote:
Hi, I am very happy with the  Expression, but old code like

class Dabla(Function):
    def eval(...)

still works.

The only problem is that the function is zero even though eval is
implemented. Is it
possible to turn this old code into an error?

In C++, no. There is no mechanism in C++ to prevent a user overloading or hiding a member function.

Garth

It would prevent some
debugging, I think.

Kent


_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/mailman/listinfo/dolfin-dev




Follow ups

References