RE: [sv-bc] Function call without parenthesis

From: Rich, Dave <Dave_Rich_at_.....>
Date: Wed Dec 14 2005 - 10:20:55 PST
Paul,

This is a backward incompatible change. Can you provide the technical
justification for this? I'm not saying there is no justification; just
that it needs to be explained for us to move on it. So far I have heard
nothing other than editorial comments.

Dave


> -----Original Message-----
> From: Paul Graham [mailto:pgraham@cadence.com]
> Sent: Wednesday, December 14, 2005 10:14 AM
> To: Rich, Dave
> Cc: sv-bc@eda.org
> Subject: Re: [sv-bc] Function call without parenthesis
> 
> > Welcome to the wonderful world of object oriented programming. You
> > should be glad SystemVerilog didn't put in all of C++.
> 
> Too bad.  I notice that C++ doesn't follow the UAP for
> function calls of no arguments.  In fact, requiring parens
> makes it possible to define operator().  Try doing that in
> Ada!
> 
> As a technical issue, I'd like to suggest that () be
> required on a function or method call of no args, except in
> the case of a system function or task.
> 
> Paul
Received on Wed Dec 14 10:20:59 2005

This archive was generated by hypermail 2.1.8 : Wed Dec 14 2005 - 10:21:18 PST