tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: EV_SET() better C++ compat with alternative implementations



On 25.08.2019 17:38, Joerg Sonnenberger wrote:
> On Sun, Aug 25, 2019 at 05:12:26PM +0200, Kamil Rytarowski wrote:
>> I want to see the original state of void* so all casts will be unneded.
> 
> But it doesn't. Casts are *still* necesseary when using integer indices
> as data.
> 

It's obvious in this context that no superfluous NetBSD-only patches are
needed.

>> Since B lang times we used pointers and integers as the same data type.
>> They were so indistinguishable that C lang invented unsigned to make any
>> difference.
> 
> That sentence makes no sense to me at all.
> 

Please send complains to Dennis Ritchie.

"Pointers, for example, were barely distinguished from integral memory
indices in early language manuals or extant code; the similarity of the
arithmetic properties of character pointers and unsigned integers made
it hard to resist the temptation to identify them. The unsigned types
were added to make unsigned arithmetic available without confusing it
with pointer manipulation."

https://www.bell-labs.com/usr/dmr/www/chist.html

> Joerg
> 


Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index