Thread Previous • Date Previous • Date Next • Thread Next |
Anders Logg wrote:
On Thu, Mar 15, 2007 at 10:04:49PM +0100, Garth N. Wells wrote:Anders Logg wrote:I might have asked this before, but why all the consts on built-in types in argument lists in the la classes? init(const uint M, const uint N); Why not just init(const uint M, const uint N);What's the difference between these two? GarthSorry, ... :-) I meant Why not just init(uint M, uint N);
What's the problem with const? Not much might happen in these functions, but M and N are not meant to be changed by the init function, so we might as well use const.
Garth
/Anders _______________________________________________ DOLFIN-dev mailing list DOLFIN-dev@xxxxxxxxxx http://www.fenics.org/mailman/listinfo/dolfin-dev
Thread Previous • Date Previous • Date Next • Thread Next |