Justin Johansson, el 21 de noviembre a las 09:42 me escribiste: > >It would definitely be a problem if octal literals disappeared > >from the language, even if only for a short while. They are pretty > >much the only sensible way to specify POSIX file permissions. > > > > import core.sys.posix.sys.stat; > > ... > > chmod("path/to/file", 0755); > > > >-Lars > > Good point. Few if any other of us though of that! :-)
This was discussed before, there is a bug report filled by Don too: http://d.puremagic.com/issues/show_bug.cgi?id=2656 I do think octal literal should be there for file permissions, being a system programming language, it would be too odd for people doing POSIX system programming not to have a way to easily manipulate file permissions and masks included in the language. -- Leandro Lucarella (AKA luca) http://llucax.com.ar/ ---------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------- "CIRILO" Y "SIRACUSA" DE "SEÑORITA MAESTRA": UNO MUERTO Y OTRO PRESO -- Crónica TV