Path: csiph.com!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Bill Chatfield Newsgroups: comp.sys.apple2.programmer Subject: Re: malloc with cc65 Date: Sun, 31 Dec 2023 11:58:19 -0500 Organization: A noiseless patient Spider Lines: 16 Message-ID: <20231231115819.34756963@smilodon-gracilis> References: <20231214135300.3f65fe0f@smilodon-gracilis> <20231214215955.353cd4e4@smilodon-gracilis> <20231218005802.24df6e51@smilodon-gracilis> <20231220105200.7f518465@smilodon-gracilis> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: dont-email.me; posting-host="063b83c0b8a146570feff60fb4f2e20b"; logging-data="1881143"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6UGRfbRQFcubizFV3ikgktLyQs+cz3cQ=" Cancel-Lock: sha1:EQ/+6tf4hUKLreh6sEdcMtXm7S0= X-Newsreader: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-redhat-linux-gnu) Xref: csiph.com comp.sys.apple2.programmer:6297 On Wed, 27 Dec 2023 10:00:43 +1100 Peter 'Shaggy' Haywood wrote: > There's no overloading going on here (notwithstanding its use the > multiplication operator). It's really quite simple. The * operator > means "the object pointed at". When used in a declaration it still > means "the object pointed at". A pointer to foo (where foo is a type) > declaration essentially means, "Declare an object which is a pointer > such that the object pointed at by it is a foo." I see what you're saying, after much mind bending. Maybe that is the correct way to think about it. The way I was thinking about it, in the declaration, the * produces a pointer. In an expression the * produces data from a pointer.