Subject: RE: [sv-ec] Err-5
From: Warmke, Doug (doug_warmke@mentorg.com)
Date: Tue Nov 18 2003 - 20:25:21 PST
Ray wrote:
I'd prefer the built-in package to have a name (rather than 'he who shall
not
be named'). This is just a preference - there is nothing technically wrong
with the null name.
Arturo wrote back:
That is a plausible way to define it. However, that would be
incompatible with
other mainstream languages such as C++ and Java. Plus, the committee did
approve this form.
Doug writes:
Arturo, this isn't strictly true with C++.
Right now the language is in transition.
It is possible to use types defined in the "std" library
(aka STL) without qualification, but that is deprecated.
Consider the STL class "vector". In the future,
it will be necessary to qualify all references to a type
such as vector. One can either refer to the type with a
fully qualified name, such as "std::vector", or one can
employ "using" syntax to import the visibility of
"vector" from the "std" (dare I say it? package!)
into the current scope.
As I mentioned in the SV-BC meeting (and I did hear the groans!),
I don't see what is wrong with naming the built-in namespace "std".
It has precedent in both C++ and VHDL. That could connote a lot
to SystemVerilog users.
I will be interested to hear details of why you think this proposal is
incompatible with C++. (I don't know much about Java, unfortunately).
Regards,
Doug
This archive was generated by hypermail 2b28 : Tue Nov 18 2003 - 20:26:21 PST