Re: [PHP-GTK-DEV] Reflection woes

[email protected] (Florian Breit)
Newsgroups php.gtk.dev
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Frédéric G. MARAND wrote:
> These do not cause errors or even warnings on runtime, and indeed
> discussion on #php suggests it may be legit for an extension to define
> methods bearing the names of reserved words of the language, but it is
> unadvised.
>
> However, it prevents extending these classes in PHP by inheriting and
> redefining these methods, since defining such extensions results in a
> compile error. Since these methods are not marked with the "final"
> modifier, they should be inheritable, so this seems to be a bug indeed.

I suggest GtkPrintSettings be made an alias (for compatibility) but the
real function be named in a way that makes it overwriteable (although at
this stage I wonder what one would wan't to overwrite it for).

Regarding the foreach() ones, I think this is just an unlucky naming,
but should be easily changeable since these functions are only for
internal use (aren't they?) and not part of the normal GTK API.


Best Regards,
Florian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIJjwUmmrYql7RDyIRAgFYAKCooiDjSFij23r3RY24/LC7jP9kBACaA7hG
HWCnebkquSwSUOxXOyKF5XM=
=H/QO
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.