[Vm-dev] [commit] Correct the volatile decls.
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 Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Useful random insult:- Doesn't just know nothing; doesn't even suspect
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Vm-dev