FROM : Kyle Sluder
DATE : Mon May 26 20:44:58 2008
On Mon, May 26, 2008 at 2:17 PM, Jens Alfke <<email_removed>> wrote:
> I don't know why AppKit doesn't use const. Without it, the symbol is just an
> ordinary global variable and could be accidentally reassigned another value,
> leading to weird and hard-to-debug errors.
I always wondered the same thing, and whether consequently it was a
bad idea to define my constants as, well, constant. Any insight?
--Kyle Sluder
DATE : Mon May 26 20:44:58 2008
On Mon, May 26, 2008 at 2:17 PM, Jens Alfke <<email_removed>> wrote:
> I don't know why AppKit doesn't use const. Without it, the symbol is just an
> ordinary global variable and could be accidentally reassigned another value,
> leading to weird and hard-to-debug errors.
I always wondered the same thing, and whether consequently it was a
bad idea to define my constants as, well, constant. Any insight?
--Kyle Sluder
| Related mails | Author | Date |
|---|---|---|
| John Love | May 26, 18:09 | |
| Scott Ribe | May 26, 18:22 | |
| Jens Alfke | May 26, 18:22 | |
| Sebastian Nowicki | May 26, 20:09 | |
| Jens Alfke | May 26, 20:17 | |
| Kyle Sluder | May 26, 20:44 | |
| Scott Ribe | May 26, 23:10 | |
| Scott Ribe | May 27, 00:40 |






Cocoa mail archive

