One function name, two return types?

  • Thread starter Thread starter Andrew Morton
  • Start date Start date
Looks a quite good syntax. I didn't gave this a close look at this is not
something I miss but I think it could also cause some problems regarding
inheritance. What if you used the relaxed syntax and you add later another
overloads etc...

I made a quick search and it looks like it is possible to simulate though
this using C++ :

http://cpptips.hyperformix.com/cpptips/ret_func_sig.txt
(though the poster mention that he suggest to stay away from it).
 
Back
Top