[Dune] [#220] Is it safe to call method father()?

Dune dune at dune-project.org
Sat Oct 3 15:04:48 CEST 2009


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#220 - Is it safe to call method father()?
User who did this - Andreas Dedner (dedner)

----------
"Not invasive" is often used here as a ''kill it all'' argument.
If a method is logical (I am trying to obtain an EntityPointer so
something which might not be there) and nicely consistent (the same
situation in the Intersections uses the same mechanism) then let us
implement this method. There seems little difference for a grid 
maintainer to add a method 
bool hasFather() const { return level()>0); }
to the entity compared to having to go into the father method
and add
if (level()==0) throw exception
----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=220#comment1178

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list