DeVault: Announcing the Hare programming language
DeVault: Announcing the Hare programming language
Posted May 4, 2022 8:34 UTC (Wed) by wtarreau (subscriber, #51152)In reply to: DeVault: Announcing the Hare programming language by Tobu
Parent article: DeVault: Announcing the Hare programming language
But how will the compiler distinguish:
free(foo);
printf("Just released %p\n", foo);
which doesn't dereference the pointer, from:
free(foo);
printf("Just released %s\n", foo);
especially if the example is a bit more constricted by just calling a debug(void *p) function that takes the pointer in argument without telling if it just uses its value or dereferences it ?
