dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #20679
Re: [noreply@xxxxxxxxxxxxx: [Branch ~massing/dolfin/sandbox_branch] Rev 200: Fixed compile errors in QuadratureRule and created the most const function ever:]
-
To:
Anders Logg <logg@xxxxxxxxx>
-
From:
Andre Massing <massing@xxxxxxxxx>
-
Date:
Fri, 14 Jan 2011 16:21:23 +0100
-
Cc:
DOLFIN Mailing List <dolfin@xxxxxxxxxxxxxxxxxxx>
-
In-reply-to:
<20110114140333.GZ7863@eowyn>
-
User-agent:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; nb-NO; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
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 : dolfin@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~dolfin
More help : https://help.launchpad.net/ListHelp
--
André Massing email: massing@xxxxxxxxx
Ph.D. student mobile: +47 469 57 401
Simula Research Laboratory
NO-1367 Fornebu, Norway
References