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

From: Mark Hartoog <Mark.Hartoog_at_.....>
Date: Wed Jun 20 2007 - 09:39:20 PDT
While we are discussing other alternatives, why don't we consider:

function C::T C::get();

This has 'C::' twice, but it seems to be more consistent with
syntax in the rest of SV. Clearly references like 'C::T' could
only be allowed in out of body function declarations because
they would not make sense anyplace else. 

> -----Original Message-----
> From: owner-sv-ec@eda.org [mailto:owner-sv-ec@eda.org] On 
> Behalf Of Gordon Vreugdenhil
> We didn't agree on the style that should be used for such 
> declarations.
> 
> Here is the original simple example:
> 
>     class C #(type T = int);
>        T x;
>        extern function T get();
>     endclass
> 
> Here are some alternatives that we discussed for the external 
> definition:
>    1)  C::function T get();    // what I originally proposed
>    2)  function::C T get();
>    3)  function #(type T = int) T C::get();
> 

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

This archive was generated by hypermail 2.1.8 : Wed Jun 20 2007 - 09:39:50 PDT