Date: Sun, 26 Jan 2025 22:06:47 +0000
On Sun, Jan 26, 2025 at 9:45 PM Sebastian Wittmeier wrote:
>
> You say:
>
> > but yet it can create a Frog* or a Monkey*
>
> Are you talking about p and p2?
Yes.
> Then it is about the pointers itself, not the objects they point to.
Yes I'm talking about pointers.
> Or are you mostly referring to how many bits pointers need and how they are stored?
> What difference would it make and when?
Yes I'm talking about how many bits is needed for the pointer. For
example on a system where CHAR_BIT==8 but the smallest addressable
unit of memory is 16 bits. On such a system, a "char*" would need to
have more bits than an "int*". (I talk about this in the original
post: https://lists.isocpp.org/std-proposals/2024/05/9773.php )
>
> You say:
>
> > but yet it can create a Frog* or a Monkey*
>
> Are you talking about p and p2?
Yes.
> Then it is about the pointers itself, not the objects they point to.
Yes I'm talking about pointers.
> Or are you mostly referring to how many bits pointers need and how they are stored?
> What difference would it make and when?
Yes I'm talking about how many bits is needed for the pointer. For
example on a system where CHAR_BIT==8 but the smallest addressable
unit of memory is 16 bits. On such a system, a "char*" would need to
have more bits than an "int*". (I talk about this in the original
post: https://lists.isocpp.org/std-proposals/2024/05/9773.php )
Received on 2025-01-26 22:06:57