On 18 Feb 2004 at 21:02, Michael Walter wrote:
> This is rather wrong - one of C++' main strengths is that it allows
> multiple paradigms of programming (procedural, object-oriented,
generic,
> generative, functional, ...) which can also be mixed etc. Instead of
> ideologically focusing on onl
Ferdinand Beyer wrote:
> On 18 Feb 2004 at 11:02, Brad Fisher wrote:
>
> > For one because PHP doesn't allow method overloading. If I have
> a method
> > A::foo($a), and I want to change the prototype in B to B::foo($x,
> $y), then
...snip...
> > (like C::A_foo) which then calls A::foo internal
Ferdinand Beyer wrote:
> [...]
C++ is difficult since it includes C. Nevertheless every C++
programmer is 100% coding (and thinking) object-oriented - even
basic data types like strings are usually objects.
This is rather wrong - one of C++' main strengths is that it allows
multiple paradigms o
On 18 Feb 2004 at 20:21, Michael Walter wrote:
> What is your criterium of a language being an "OO language"?
Why is it
> that you consider C++ as an OO language, but not PHP?
C++ is difficult since it includes C. Nevertheless every C++
programmer is 100% coding (and thinking) object-oriented
Ferdinand Beyer wrote:
> [...]
Well, I must confess that I do not know Perl (perhaps I'm to young).
But I said "not available in any OO language" - neither Perl nor PHP
are OO languages in my opinion (like Java, C++) so we should not
use Perl as a role model here :-)
What is your criterium of a
On 18 Feb 2004 at 11:02, Brad Fisher wrote:
> For one because PHP doesn't allow method overloading. If I have
a method
> A::foo($a), and I want to change the prototype in B to B::foo($x,
$y), then
> there is no way for me to call the original A::foo. I could use
optional
> params to emulate t
Ferdinand Beyer wrote:
> On 17 Feb 2004 at 14:01, Brad Fisher wrote:
>
> > class D {
> > function bar() {
> > $c = new C;
> > // I'd like to call the A::foo method of C here...
> > //In PHP4, I could do something like:
>
> Why should one want to do that? Why should PHP allow this
On 17 Feb 2004 at 14:01, Brad Fisher wrote:
> class D {
> function bar() {
> $c = new C;
> // I'd like to call the A::foo method of C here...
> //In PHP4, I could do something like:
Why should one want to do that? Why should PHP allow this?
$c is not an A, it is a C. Of course