Re: [sv-bc] Function call without parenthesis

From: Paul Graham <pgraham_at_.....>
Date: Wed Dec 14 2005 - 08:45:20 PST
> So, I am trying to parse this.  Brad, you believe that the attribute
> inquiry methods may be invoked without the parenthesis?
> 
> Specifically, that "x = str.len;" is legal?

So why exactly do we want to allow vhdl-like syntax for
functions of no arguments?  It's a pain for the vhdl guys to
implement (or at least it was for me).  I understand that
for backwards compatibility we allow this for system
functions:

    x = $random;

but system functions and tasks are easy to recognize and 
don't pose the same problems.

I think verilog and its descendants should stick to the C
philosophy of "no cute syntax".

Paul
Received on Wed Dec 14 08:45:23 2005

This archive was generated by hypermail 2.1.8 : Wed Dec 14 2005 - 08:46:00 PST