[Vm-dev] [commit][3199] Correct the volatile decls.

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Tue Dec 30 22:11:16 UTC 2014


My neurons never connected the syntax until some colleague taught me the
rule for const qualifier:
You have to read declaration from right to left

int * const x -> x is a constant pointer to an int
int const * x -> x is a pointer to a constant int.

Same for any other volatile, chicken, goose...

2014-12-30 22:48 GMT+01:00 tim Rowledge <tim at rowledge.org>:

>
>
> On 30-12-2014, at 12:24 PM, commits at squeakvm.org wrote:
>
> >
> > Revision: 3199
> > Author:   eliot
> > Date:     2014-12-30 12:24:52 -0800 (Tue, 30 Dec 2014)
> > Log Message:
> > -----------
> > Correct the volatile decls.  C makes the rules, not me.
>
> Don’tcha just hate it when reality conflicts with what should be?
>
>
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Useful random insult:- Doesn't just know nothing; doesn't even suspect
> much.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20141230/030a67af/attachment.htm


More information about the Vm-dev mailing list