Subject: [sv-ec] Erratum and PROPOSAL -- optional () in subroutine calls
From: Brad Pierce (Brad.Pierce@synopsys.com)
Date: Mon Dec 15 2003 - 10:46:59 PST
Thomas Kruse pointed out (
http://www.eda.org/sv-bc/display_issue.cgi?issue_num=92 )
that the optional argument list for subroutine calls can be confusing.
In fact, for traditional Verilog functions it can be ambiguous, because, as
described in 10.3.2 of the V2K LRM --
"The function definition shall implicitly declare a variable, internal to
the
function, with the same name as the function."
so it is not always clear whether the name of the function means the value
of
that variable or the return value of a recursive call.
The attached proposal would restrict the omission of () to only tasks and
method
calls, and would require the () for traditional function calls.
-- Brad
This archive was generated by hypermail 2b28 : Mon Dec 15 2003 - 10:48:34 PST