Re: [sv-bc] Constant method calls

From: Gordon Vreugdenhil <gordonv_at_.....>
Date: Wed Jan 30 2008 - 07:08:43 PST
I don't see why one would want to consider this illegal.  All
the normal rules regarding constant function behavior would
apply and it seems overly restrictive to want to disallow them
just because the LRM doesn't address that specifically.

Gord.


Brad Pierce wrote:
> Can a method_call be a constant_primary if the root of the method_call 
> is constant?
>  
> For example, could a call to a method of an enum-valued parameter be 
> used as a constant expression? 
>  
>         localparam E P = P.first;
>         localparam E Q = P.next(N-1);
>  
> I don't find anything in the LRM saying that this is legal.
>  
> -- Brad
>  
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.

-- 
--------------------------------------------------------------------
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 Jan 30 07:09:18 2008

This archive was generated by hypermail 2.1.8 : Wed Jan 30 2008 - 07:09:43 PST