Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Re: Strange Compiler Behaviour -

2005-02-24 by Robert Adsett

At 01:27 PM 2/24/05 +0000, Mark Butcher wrote:
>OK - you were right. It was working on the Windows PC because the
>module is really getting its memory from heap and uses a pointer.
>The other declaration (static array) was also working but only by
>chance since it was setting and collecting from a 'free' location.

I won't reply to your other message then :).  I think this is an area where 
the similarity of Cs syntax usage rules on [] between pointers and arrays 
coupled with the automatic conversion of array name to pointer causes 
people to build up false models.  You are certainly not the only person to 
run afoul of it.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.