Den 14.01.11 15.03, skrev Anders Logg:
Interesting, what exactly does that mean?
We have a double const in the UFC interface:
const double * const * w
so what does that triple const do? Is it possible to be that const?
I would say it makes the pointer constant, meaning you cannot change the
address it points to. It is just an iteration of
const double * p , (= double const * p) which is a pointer to a constant
double, so value cannot changed,
double * const p , which is a constant pointer to a double (address
cannot changed)
and
double const * const p (const value and address)
So one more * can give you more const :) a constant pointer
to constant pointers of constant double. And I think I am constantly
using the word constant right now, so I should probably stop here :)
--
Andre
--
Anders
_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dolfin
More help : https://help.launchpad.net/ListHelp
--
André Massing email: [email protected]
Ph.D. student mobile: +47 469 57 401
Simula Research Laboratory
NO-1367 Fornebu, Norway
_______________________________________________
Mailing list: https://launchpad.net/~dolfin
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dolfin
More help : https://help.launchpad.net/ListHelp