[PHP-DEV] 5.4a2 trait attribute name conflict resolution

2011-07-22 Thread Alex Howansky
t's happening, but it says nothing about what happens to attributes in that same condition. Is this a bug? Thanks, -- Alex Howansky smime.p7s Description: S/MIME Cryptographic Signature

Re: [PHP-DEV] 5.4a2 trait attribute name conflict resolution

2011-07-22 Thread Alex Howansky
d be overridden by same-named properties defined in a class that use the trait." Or (as pointed out by Anthony) this: "You shouldn't be able to define properties in a trait." -- Alex Howansky smime.p7s Description: S/MIME Cryptographic Signature

Re: [PHP-DEV] 5.4a2 trait attribute name conflict resolution

2011-07-22 Thread Alex Howansky
Just curious, if the trait property is set to private what happens? Ooh, good question. PHP Fatal error: baz and foo define the same property ($zoo) in the composition of baz. However, the definition differs and is considered incompatible. -- Alex Howansky smime.p7s Description: S

Re: [PHP-DEV] 5.4a2 trait attribute name conflict resolution

2011-07-22 Thread Alex Howansky
liar with. I'll have to know what every one of their properties is named so I can plan my code accordingly -- else I'll silently start getting their values in what I think are my variables. -- Alex Howansky smime.p7s Description: S/MIME Cryptographic Signature