I just banged my head against the table for some 20 minutes looking at a totally weird bug in PHP, and then I realized there's octal. The god damn octal.
In short, I padded some literals with zeros so the code would be aligned, I know, big mistake. Forgot about octals.
The question is, does anyone use octals? other than file permissions, for which I personally prefer chmod ugo+rwx but I understand that if they have to be programmaticaly generated, it's useful to use octals. But in any other situation?
Who uses octals?
Petruza
- 1.1k
- 1
- 8
- 15