Notes on implementing concise calls to constructors with type parameters

Howard Lovatt howard.lovatt at gmail.com
Fri May 15 05:52:38 PDT 2009


Good point

   -- Howard Lovatt +61 419 971 263

On 15/05/2009, at 6:24 PM, Ulf Zibis <Ulf.Zibis at gmx.de> wrote:

> +1
>
> Am 15.05.2009 09:26, Howard Lovatt schrieb:
>> *class X<T> {*
>> *  public X( T t ) { ... }*
>> *}*
>>
>>
>> Therefore the textual substitution method proposed works for both of
>> these cases.
>>
>>
>
> ... and additionally it saves JLS change regarding error/warning on:
>   X<String> xs = new X( 1 );
> ;-)
> If substituted by:
>   X<String> xs = new X<String>( 1 );
> it is clearly an error.
>
>
> -Ulf
>
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email  
> ______________________________________________________________________



More information about the coin-dev mailing list