Date: 07/12/00
- Next message: Mathieu Kooiman (ggInternet): "Re: [PHP-DEV] do_declare_property()"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] do_declare_property()"
- In reply to: Teodor Cimpoesu: "Re: [PHP-DEV] do_declare_property()"
- Next in thread: Mathieu Kooiman (ggInternet): "Re: [PHP-DEV] do_declare_property()"
- Reply: Mathieu Kooiman (ggInternet): "Re: [PHP-DEV] do_declare_property()"
- Reply: Teodor Cimpoesu: "Re: [PHP-DEV] do_declare_property()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Yeah but I assume python *knows* what type z is at compile time, right?
Andi
At 14:41 12/07/00 +0300, Teodor Cimpoesu wrote:
>Hi Zeev!
>On Wed, 12 Jul 2000, Zeev Suraski wrote:
>
> > A good start would be knowing how you implemented these access control
> > modifiers. As far as I can tell there's no real transparent way of doing
> > this without either slowing Zend down considerably, or consuming
> roughly 2x
> > memory (even if you don't use objects).
> >
>BTW, in Python, the trick is a rewrite of the variable names.
>The convention is that private members to start with (least) 2 `__' :
>e.g.
>class Foo:
> def __init__(self,b):
> self.__bar = b
> def getBar(self):
> return self.__bar
>z = Foo(1)
>print z.getBar()
>
>for the private variable __bar, Python rewrites it to _Foo__bar
>
>-- teodor
>
>--
>PHP Development Mailing List <http://www.php.net/>
>To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
>For additional commands, e-mail: php-dev-help <email protected>
>To contact the list administrators, e-mail: php-list-admin <email protected>
--- Andi Gutmans <andi <email protected>> http://www.zend.com/-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Mathieu Kooiman (ggInternet): "Re: [PHP-DEV] do_declare_property()"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] do_declare_property()"
- In reply to: Teodor Cimpoesu: "Re: [PHP-DEV] do_declare_property()"
- Next in thread: Mathieu Kooiman (ggInternet): "Re: [PHP-DEV] do_declare_property()"
- Reply: Mathieu Kooiman (ggInternet): "Re: [PHP-DEV] do_declare_property()"
- Reply: Teodor Cimpoesu: "Re: [PHP-DEV] do_declare_property()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

