Groups | Search | Server Info | Login | Register
Groups > comp.sys.apple2.programmer > #6301
| Path | csiph.com!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Peter 'Shaggy' Haywood <phaywood@alphalink.com.au> |
| Newsgroups | comp.sys.apple2.programmer |
| Subject | Re: malloc with cc65 |
| Date | Wed, 03 Jan 2024 19:05:57 +1100 |
| Organization | A noiseless patient Spider |
| Lines | 36 |
| Message-ID | <54hf6k-nk2.ln1@hendrix.foo> (permalink) |
| References | <20231214135300.3f65fe0f@smilodon-gracilis> <ulfvsv$2pb5c$1@solani.org> <20231214215955.353cd4e4@smilodon-gracilis> <ulirs5$4fr4$1@solani.org> <20231218005802.24df6e51@smilodon-gracilis> <ulq7su$3g1p$1@solani.org> <20231220105200.7f518465@smilodon-gracilis> <rh2s5k-642.ln1@hendrix.foo> <20231231115819.34756963@smilodon-gracilis> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7Bit |
| Injection-Info | dont-email.me; posting-host="7e5362f06aae1a4afb7bd834d9e29c86"; logging-data="3381186"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18hsXQXoUJQ05KED68NYS6i/MbPeURTDCY=" |
| User-Agent | KNode/0.10.9 |
| Cancel-Lock | sha1:pPjw/U/2OWTFzIyhgK/NVn+Hgwg= |
| Xref | csiph.com comp.sys.apple2.programmer:6301 |
Show key headers only | View raw
Groovy hepcat Bill Chatfield was jivin' in comp.sys.apple2.programmer on
Mon, 1 Jan 2024 03:58 am. It's a cool scene! Dig it.
> On Wed, 27 Dec 2023 10:00:43 +1100
> Peter 'Shaggy' Haywood <phaywood@alphalink.com.au> 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.
Dereferences the pointer, yeah, that's basically correct. But you have
to sort-of shift your thinking sideways a bit to understand what's
really going on. A declaration containing an asterisk means "declare an
object that points at foo". That's perhaps a more idiomatic but less
technically precise way of saying "declare an object which is a pointer
such that the object pointed at by it is a foo." The asterisk itself
means "the object pointed at".
It may sound odd at first, but makes perfect sense once you get it. :)
--
----- Dig the NEW and IMPROVED news sig!! -----
-------------- Shaggy was here! ---------------
Ain't I'm a dawg!!
Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
malloc with cc65 Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-14 13:53 -0500
Re: malloc with cc65 Oliver Schmidt <ol.sc@web.de> - 2023-12-14 22:34 +0000
Re: malloc with cc65 Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-14 21:59 -0500
Re: malloc with cc65 Oliver Schmidt <ol.sc@web.de> - 2023-12-16 00:43 +0000
Re: malloc with cc65 Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-18 00:58 -0500
Re: malloc with cc65 Oliver Schmidt <ol.sc@web.de> - 2023-12-18 19:51 +0000
Re: malloc with cc65 Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-20 10:52 -0500
Re: malloc with cc65 Peter 'Shaggy' Haywood <phaywood@alphalink.com.au> - 2023-12-27 10:00 +1100
Re: malloc with cc65 Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-31 11:58 -0500
Re: malloc with cc65 Peter 'Shaggy' Haywood <phaywood@alphalink.com.au> - 2024-01-03 19:05 +1100
Re: malloc with cc65 Colin Leroy-Mira <colin@colino.net> - 2024-02-01 21:54 +0100
csiph-web