Re: GSoC Progress
Matthieu Kraus <[email protected]>
| Newsgroups | gmane.comp.graphics.crystalspace.devel |
|---|---|
| Message-ID | <[email protected]> |
>> /// empty constructor
>> csFilePermission() { }
>> csFilePermission(int permission, bool octal = true) { /* .. more details
>> here .. */ }
>> };
>>
>> This way, csFilePermission constructor can actually take something like
>> 777 (if decimal) or 0777 (if octal).
what's the point of the bool octal there?
after all you take an int and if the user wishes to use non-dec he can
use the prefixes for those, e.g. the following are perfectly equivalent:
csFilePermission(511);
csFilePermission(0777);
csFilePermission(0x1FF);
so I don't see a point in adding that octal option there as it's
already implicitly present with int and the way you thought of it
probably will just add pointless processing overhead
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/