Re: [sv-bc] Scope of function formal

From: Steven Sharp <sharp_at_.....>
Date: Fri Jul 21 2006 - 12:39:17 PDT
>Also, is it legal to write the following?
>
> 
>
>        function var type(x) foo( ... );

Well, I definitely don't think the "var" is appropriate there.  That is
not part of the type.  It specifies the kind of object you are declaring:
a variable, as opposed to a wire or a function.

Now a function implicitly declares a variable for the return value as
part of the function, but you declare the function not the variable.

Steven Sharp
sharp@cadence.com
Received on Fri Jul 21 12:39:21 2006

This archive was generated by hypermail 2.1.8 : Fri Jul 21 2006 - 12:39:43 PDT