I am wondering how hard it would be to implement automatic casts from objects to basic types. You probably know what I mean... small example:

    void fun(int a) {
            ...
    }

    object i = Int(32); // Class offering a cast method

    fun(i); // cast to int automatically

I admit that it introduces new traps and some complexity. Any opinions?

arne
  • automatic cas... Arne Goedeke
    • Re: auto... Martin Bähr
      • Re: ... Martin Bähr
        • ... Henrik Grubbstr�m (Lysator) @ Pike (-) developers forum
          • ... Arne Goedeke
            • ... Martin Bähr
            • ... Johan Sundstr�m (Achtung Liebe!) @ Pike (-) developers forum

Reply via email to