[sv-bc] Question about proposal for SV-BC Issue 98


Subject: [sv-bc] Question about proposal for SV-BC Issue 98
From: Rishiyur S. Nikhil (nikhil@bluespec.com)
Date: Tue Nov 25 2003 - 14:22:59 PST


Just trying to understand the implications of our decision
to allow the 'parameter' keyword to be omitted in parameter port lists
(SV-BC Issue 98).

Consider the following, in the original syntax:

     #(parameter real X = 5.0, parameter Y = 6)

I believe the type of Y becomes an integral type (int? integer?).
In particular, its type has nothing to do with the earlier param.

But if I simply drop the 'parameter' keywords:

     #(real X = 5.0, Y = 6)

then will 'X = 5.0, Y = 6' be parsed as the list_of_param_assignments
associated with 'real, thereby giving Y the 'real' type with default
value 6.0?

So, must I now give an explicit type for Y to avoid it being 'captured'
by the preceding 'real' type?
(This is probably good style, anyway.)

Nikhil



This archive was generated by hypermail 2b28 : Tue Nov 25 2003 - 14:24:38 PST