Re: [sv-ec] Mantis 1857 - extern method types for parameterized classes

From: Gordon Vreugdenhil <gordonv_at_.....>
Date: Wed Jun 20 2007 - 09:05:08 PDT
Geoffrey.Coram wrote:
> If someone tried to use form 3) but changed the default
> specialization:
>   function #(type T = double) T C::get();
> 
> is this an error?  (type T = int in the class definition).

My opinion -- yes, this would be an error.  The defaults
here are purely redundant and would have to match exactly.

Gord.



> -Geoffrey
> 
> 
> 
> Neil Korpusik wrote:
>> Thanks to Gord and Mike for working on these alternatives.
>>
>> Below are my preferences (the first one being the most desirable).
>> I actually prefer 4) or 3) a lot more than either 1) or 2). I
>> would even be willing to allow both 4) or 3) as being equivalent
>> alternatives. Users could choose the form (4 or 3)that most suites
>> their taste.
>>
>> 4) function #(type T) T C::get();
>> 3) function #(type T = int) T C::get();
>> 1) C::function T get();
>> 2) function::C T get();
>>
>> Neil
> 

-- 
--------------------------------------------------------------------
Gordon Vreugdenhil                                503-685-0808
Model Technology (Mentor Graphics)                gordonv@model.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Jun 20 09:05:27 2007

This archive was generated by hypermail 2.1.8 : Wed Jun 20 2007 - 09:05:33 PDT