Yeah this is definitely going to be fixed (partially fixed already in CVS) where you'll get a "You idiot" message if you try and use access modifiers :)

I thought there was another bug you pointed out in your code but I might be wrong. Can't remember.
Thanks,
Andi


At 10:07 PM 10/13/2004 +0200, Timm Friebe wrote:
On Tue, 2004-10-12 at 00:09, Andi Gutmans wrote:
> What do you expect to happen?

I expected it to work: Either give me a compile error ("You idiot! Why
are you using method modifiers in an interface?") or not complain and
let me code improper OO. The problem is the the confusing message.

Btw, there was a thread about this quite a while ago ("[PHP-DEV]
protected interface methods",
http://zend.com/lists/php-dev/200307/thrd5.html). The conclusion was, I
guess, that interface methods should always be public.

- Timm

-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to