On Tue, Jul 22, 2008 at 05:30:02PM +0000, Henrik Grubbstr�m (Lysator) @ Pike (-) developers forum wrote:
is it possible to add this functionality by subclassing Stdio.FILE?
Not without reimplementing everything in it once again, since the relevant variables and functions are private.
ok, here is where it gets interesting.
is it necessary for that to be private? is it necessary for anything in pike core to be private? wouldn't protected be enough?
the only reason i can see for something to be private is that it should not be part of the api, but that can be achived with using protected or optional as well. i don't think the pike user should be prevented from accessing anything in order to make use of it and override specific bits to change functionality.
greetings, martin.