function overloading
Jay O'Connor
joconnor at cybermesa.com
Sat May 24 18:38:37 EDT 2003
More information about the Python-list mailing list
Sat May 24 18:38:37 EDT 2003
- Previous message (by thread): function overloading
- Next message (by thread): latin1 encoding as default?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, 24 May 2003 23:28:25 +0000, laotseu <bdesth at removethis.free.fr> wrote: >> In C you can have >> >> int myFunc (int a) {}; >> int myFunc (char* a) {}; >> >> and the compiler can tell by the types involved which function to >> call. > >No you can't. Try to compile this and you'll get two errors : >- conflicting types for 'myFunc' >- previous declaration of 'myFunc' > >Your example would work in C++, but C and C++ are two different languages... ></HS> Fair enough. I knew the concept that I was shooting for but was a bit rusty to provide a workable examle. Take care, Jay
- Previous message (by thread): function overloading
- Next message (by thread): latin1 encoding as default?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list