- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
On more question about Type building
Thu, 2009-06-11, 14:50
Folks,
Once I have a Symbol via getClass, how do I add a type parameter... so I can turn List into List[String]... and does <:< "do the right thing" for type parameters, variance, etc.?
Thanks,
David
Thu, 2009-06-11, 16:57
#2
Re: On more question about Type building
On Thu, Jun 11, 2009 at 7:06 AM, Adriaan Moors <adriaan.moors@cs.kuleuven.be> wrote:
On Thu, Jun 11, 2009 at 3:50 PM, David Pollak <feeder.of.the.bears@gmail.com> wrote:
using appliedType(sym.tpeHK, args) (or sym.tpe -- it doesn't matter if you're going to apply it to type arguments rightaway) // args : List[Type]Folks,
Once I have a Symbol via getClass, how do I add a type parameter... so I can turn List into List[String]...
Awesome.
of course ;-)and does <:< "do the right thing" for type parameters, variance, etc.?
Cool and the gang!
cheersadriaanThanks,
David
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm for more information.
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp
On Thu, Jun 11, 2009 at 3:50 PM, David Pollak <feeder.of.the.bears@gmail.com> wrote:
using appliedType(sym.tpeHK, args) (or sym.tpe -- it doesn't matter if you're going to apply it to type arguments rightaway) // args : List[Type]
of course ;-)
cheersadriaan