-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 25.03.10 16:21, schrieb Stefan Marr: > > On 25 Mar 2010, at 16:00, Lukas Kahwe Smith wrote: >> On 25.03.2010, at 14:48, David Soria Parra wrote: >>> This approach is taken in scala and works pretty fine there for composing >>> classes >>> during runtime and should be douable in PHP too. For sure aliasing is not >>> possible in this example. >>> >>> But as said just a general idea that I might try to work on once traits are >>> comittet. >>> >>> Stefan what do you think about "stackable traits" ? >> >> Woha .. that code really scares me. > I am not scared, it is just dynamic, and goes in the direction of > prototype-based OO. > > It could be implemented as hidden/shadow classes. Thus interpret > 'new Person() with Philsophical, Drink;' as a class definition itself, with > some name-mangling it would be possible. And should not result in noticeable > overhead. At least that is where Self and V8(JavaScript) are getting their > speed from.
yes that might be a good option, I'll keep it in mind for the case I would write an RFC once we got the basics right. > But, well, it is extension, think we should get the basics right first. yes. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkurgG4ACgkQ/snRGA1Vb0tEnQCbB7vECvafSy9ND1iXSciG10mU k6kAoPJTAZmI5ZVN2WOFDgR6Ga/6moLY =eMdt -----END PGP SIGNATURE----- -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php