Generally things are added because someone needed them. You're right that many "basic' unix methods are missing and perhaps they should indeed be added. For example I could see a strftime added to the Locale class (since strftime depends on locale).
One main reason for many of these not being added is that they depend on things outside of Pike's control, something that is generally not desired (i.e strftime depending on locale making it useless except for information messageS).
/ David Hedbor
Previous text:
2003-02-26 23:15: Subject: Re: 64 bit ints
On Wed, Feb 26, 2003 at 10:00:03PM +0100, Martin Nilsson (har bott i google) @ Pike (-) developers forum wrote:
That's clearly as falsified a statement as saying that you have _no control_ over the sign bit.
At least, I expect that 0x80000000 will fit in 32 bits and it still will be an integer. This is logical, isn't? :)
"Nobody really needs it" is many times a good and true statement, but I don't think it has been used before in this thread, has it? The
Not in this thread, but looong time ago I discussed this already.
part of the modules that are useless probably depends on your scope of vision and ability as programmer. I have used most of the modules, so by definition they are not useless to me.
For instance, Mird, Math, Parser, SDL, Shuffler, Georgrahy etc - most of them are useless to me, and I bet that for vast majority of Pike users too :)
OTOH, there was no function like gettimeofday() in earlier versions, and there is no (still) strftime() like function (yes, I know about Calendar module but it is too overcomplicated for simple purposes, and much slower), however those two are more frequently used comparing to Parser :)
Regards, /Al
/ Brevbäraren