RE: [sv-ec] constraint_mode is a task?

From: Steven Sharp <sharp_at_.....>
Date: Wed Aug 23 2006 - 16:49:21 PDT
>This syntax is a special case to handle the lack of support for variable
>numbers of arguments (varargs) in SystemVerilog. I believe this is a
>frequently requested enhancement and would get rid of this special case.

Why weren't two different methods defined for these two different
operations?  A function to query the mode is a different operation than
a task to set the mode.  Overloading the name doesn't provide any
advantage; it just creates a situation that is inconsistent with the
rest of the language.  Making them separate methods also allows the
task to have an argument, while the function does not.  This was just
bad design.

Steven Sharp
sharp@cadence.com
Received on Wed Aug 23 16:49:27 2006

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 16:49:53 PDT