[sdiy] Pointers in C
Magnus Danielson
magnus at rubidium.dyndns.org
Sat Dec 31 18:08:39 CET 2011
On 12/31/2011 05:57 PM, MTG wrote:
> +1 for unions. On an 8-bitter it will be the smallest and fastest.
The vector-variant I described has all reasons to be equivalent to the
union variant. Union is indeed a good way to solve it, but it doesn't
help to teach Paul how pointers work, which is useful when going outside
of the example at hand.
The incrementing pointer could possibly be optimized too, but it is not
as easy to see that it will.
Cheers,
Magnus
More information about the Synth-diy
mailing list