[nem-pl] Varianty, a ToString

rzyjontko rzyj at o2.pl
Sun May 9 13:40:06 CEST 2004


A tak btw: dlaczego muszę pisać

  public f (a : System.Object, b : System.Object) : string
  {
      if (a.Equals (b))
          a.ToString ()
      else
          b.ToString ()
  }

zamiast

  public f <'a> (a : 'a, b : 'a) : string
  {
      if (a.Equals (b))
          a.ToString ()
      else
          b.ToString ()
  }

??

-- 
rzyjontko
http://www.student.ii.uni.wroc.pl/~rzyj/





More information about the devel-pl mailing list