[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] af9b52: Fix a comment typo in sqImageFileAccessViaStdio.h.

Jakob Reschke jakres+squeak at gmail.com
Sun Oct 9 10:21:44 UTC 2022


Am So., 9. Okt. 2022 um 11:27 Uhr schrieb Tobias Pape <Das.Linux at gmx.de>:

>  > char* foo is bad; the type of bar in "char* foo, bar;" is char.
>
> Ok, so it's "typedef pchar char*" from now on…
>

And typedef const char *pcchar; because otherwise some inexperienced C
programmer will use const pchar x and not get the const string which they
wanted...

Or in other words: don't do this. ;-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20221009/6b0ecc2e/attachment.html>


More information about the Vm-dev mailing list