Re: [PHP-DEV] RFC - "class underloading" -or- "ancestor overloading"

2010-03-17 Thread Chris Trahey
Sorry for duplicate message- mail server fail. Chris Trahey Web Applications Developer Database Administrator College Station I.S.D. On Mar 12, 2010, at 5:37 PM, "Chris Trahey" wrote: Perhaps a new concept in class-based OO programming, I'm not sure. Depending on your perspe

[PHP-DEV] RFC - "class underloading" -or- "ancestor overloading"

2010-03-17 Thread Chris Trahey
avascript and the Obj.prototype which (combined with anonymous functions) allows you to extend the "base" functionality of other objects that "extend" it. Thank you for your comments and thoughts! Chris Trahey Web Applications Developer Database Administrator CSISD [Technology]

Re: [PHP-DEV] RFC - "class underloading" -or- "ancestor overloading"

2010-03-12 Thread Chris Trahey
tiple overloads are attempted, they could be in sequence, such that you'd end up having an inheritance chain like this: called_class <-- second_overload <-- first_overload <-- Library_Class <-- etc. On Fri, Mar 12, 2010 at 8:11 PM, Etienne Kneuss wrote: > Hi, > > On Sat

[PHP-DEV] RFC - "class underloading" -or- "ancestor overloading"

2010-03-12 Thread Chris Trahey
uages perhaps, as is the case with javascript and the Obj.prototype which (combined with anonymous functions) allows you to extend the "base" functionality of other objects that "extend" it. Thank you for your comments and thoughts! Chris Trahey Web Applications Developer Databas

[PHP-DEV] New access modifier

2009-09-19 Thread Chris Trahey
{} Or group(MyInterface MyClass) function myMethod() {} Chris Trahey Web Applications Developer Database Administrator College Station I.S.D. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] reference caller object

2009-09-19 Thread Chris Trahey
st-practices, help people solve problems with PHP Another line item on a feature list (someone's selling this stuff, right ? ;) Negatives: Someone has to code it Some people will write fragile code with it. Looking forward to more thoughts... Chris Trahey Web Applications Developer Database

Re: [PHP-DEV] reference caller object

2009-09-19 Thread Chris Trahey
I guess what I'm really getting at is another access modifier: private, protected, public... And now adding something like trusted. trusted function myMethod() callable trustedInterface {} In a case like this, caller would always be available, but not always type-checked. Chris Trahe

Re: [PHP-DEV] reference caller object

2009-09-19 Thread Chris Trahey
dClass or impliments trustedInterface or we have Exception } Surely there would be a few ways to skin this cat, but it solves the "friend class" relationship without if(instanceof)... which would be pretty cool. Chris Trahey Web Applications Developer Database Administrator Col

Re: [PHP-DEV] reference caller object

2009-09-18 Thread Chris Trahey
known (intrinsically) but the sender is not. It seems like a basic property of a method call that is not exposed in a semantically appropriate way. Chris Trahey Web Applications Developer Database Administrator College Station I.S.D. On Sep 18, 2009, at 7:28 PM, Larry Garfield wrote: On Frid

Re: [PHP-DEV] reference caller object

2009-09-17 Thread Chris Trahey
ike a basic element of OOP. Chris Trahey Web Applications Developer Database Administrator CSISD [Technology] Chris Stockton writes: >On Wed, Sep 16, 2009 at 1:59 PM, Chris Trahey wrote: >> (Please direct me elsewhere if necessary, this is a feature request) >> >> It would be

Re: [PHP-DEV] reference caller object

2009-09-17 Thread Chris Trahey
ying on debug_backtrace() for access to the object a bad idea. Chris Trahey Web Applications Developer Database Administrator CSISD [Technology] Sebastian Bergmann writes: >Chris Trahey schrieb: >> using it is current-implimentation specific (i.e. developer needs to &g

Re: [PHP-DEV] reference caller object

2009-09-17 Thread Chris Trahey
mat of the array returned) Chris Trahey Web Applications Developer Database Administrator CSISD [Technology] rquadl...@googlemail.com writes: >2009/9/17 Chris Trahey : >> It seems worthwhile in a service-provider situation where you do not >wish to >> enforce use of $this in service

Re: [PHP-DEV] reference caller object

2009-09-16 Thread Chris Trahey
an implicit way for a message recipient to determine who is sending the message, in a uniform way (not left up to the consumers of your API to impliment). Thanks for your consideration. Chris Trahey Sent from my iPhone On Sep 16, 2009, at 8:47 PM, Larry Garfield wrote: If the object

[PHP-DEV] reference caller object

2009-09-16 Thread Chris Trahey
er instanceof 'my_interface')) throw new dev_execption(); if( ! ($this->authenticateMod(caller))) throw new admin_exception('module not active'); $this->loadedMods[caller->module_id()] = caller; return caller->onLoad(); } Chris Trahey Web Applications Developer Database Administrator CSISD [Technology]

[PHP-DEV] Multiple Apache Modules

2009-08-25 Thread Chris Trahey
hosts, assign whichever php module is appropriate 3. have v-hosts that point to the same files, but use different versions of php\ 4. requests can look like this: php5-2-10.mysite.com php5-3-0.mysite.com php6-0.mysite.com Chris Trahey Web Applications Developer Database Administrator CSISD