Re: [Jastadd] JastAdd feature request

From: Görel Hedin <gorel_at_cs.lth.se>
Date: Fri, 10 Feb 2012 08:30:18 +0100

Thanks for the suggestion!

We plan to take a look at the use of generics overall at some point. I've added the example to ticket #39.

--Görel

9 feb 2012 kl. 11.16 skrev Jesper Mattsson:

> Hi
>
> Given an AST declaration:
>
> A ::= B*;
> B;
> C : B;
>
> A gets among other things a method:
>
> public void setBList(List<B>)
>
> It would be useful if it instead was:
>
> public void setBList(List<? extends B>)
>
> That would allow passing a List<C> to it without a cast.
>
> Jesper
>
> Jesper MATTSSON, MSc
> Software Developer & IT Administrator
>
> Phone direct: +46 73 324 5909
> Email: jesper.mattsson_at_modelon.com
>
> <image001.png>
> Modelon AB
> Ideon Science Park
> SE-223 70 Lund, Sweden
> Phone: +46 46 286 2200
> Fax: +46 46 286 2201
>
> Web: http://www.modelon.com
>
>
> _______________________________________________
> JastAdd mailing list
> JastAdd_at_cs.lth.se
> https://mail1.cs.lth.se/cgi-bin/mailman/listinfo/jastadd
Received on Fri Feb 10 2012 - 08:30:21 CET

This archive was generated by hypermail 2.3.0 : Wed Apr 16 2014 - 17:19:06 CEST