Re: [sv-bc] Datatypes allowed for parameters?

From: Gordon Vreugdenhil <gordonv_at_.....>
Date: Fri Dec 16 2005 - 10:13:11 PST
Francoise, I think that any type is legal, however for
most dynamic types it is hard to build any interesting
values that satisfy the constantness rules.  For example,
one could have a parameter of a class type, but the only
constant value in that domain is "null".  So it isn't
clear that class types are useful even though they are
legal.  For dynamic arrays, one can assign constant
aggregates so those can make sense I think.

Gord.

francoise martinolle wrote:

> Are there any restrictions for the datatype of a parameter?
>  
> For example, can a parameter be of of dynamic datatype?
> If the datatype is an unpacked struct, is there any restriction on the
> data types of the members?
>  
> Francoise
>        '

-- 
--------------------------------------------------------------------
Gordon Vreugdenhil                                503-685-0808
Model Technology (Mentor Graphics)                gordonv@model.com
Received on Fri Dec 16 10:13:18 2005

This archive was generated by hypermail 2.1.8 : Fri Dec 16 2005 - 10:13:23 PST