This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Type signature of Manifest.erasure

No replies
alois.cochard
Joined: 2010-03-19,
User offline. Last seen 34 weeks 3 hours ago.
Greetings,
After running some search on google I wasn't able to find an answer...
Why is the property 'erasure' from the class 'Manifest' of type java.lang.Class and not Class (the scala one) ? http://www.scala-lang.org/api/current/index.html#scala.reflect.Manifest
I understand that type erasure come from Java world, but I'm bit skeptic about how to make code using Manifest portable across different Scala implementation.
Wouldn't be possible to use Manifest on .NET (since erasure doesn't occur on .NET must be possible to have parameterized type an other way...) ? erasure is perhaps not a good name... couldn't be more generic ?
Thanks for your help,
--
Alois Cochardhttp://aloiscochard.blogspot.comhttp://twitter.com/aloiscochard

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland