Subject: Re: [sv-cc] DirectC: supporting references in DirectC
From: Andrzej Litwiniuk (Andrzej.Litwiniuk@synopsys.com)
Date: Fri Feb 28 2003 - 07:54:10 PST
> I have heard nobody in favor of supporting references (besides Kevin, and I am even not sure here), therefore I have already asked
> Swapnajit/Ghassan to start a poll on this. We should get closure on this as soon as possilbe, because it relates to other
> committees, which might make the stuff even more complicated.
>
> -Michael
> > I'm hoping we can get closure on references pretty soon,
> > i.e. don't support them. Depending on how that turns out,
> > you probably need to communicate that in your requirements
> > to sv-ec, Joao.
> >
> > Doug
1. I'm against supporting references (formal args qualified as 'ref')
for DirectC.
The decision whether to support 'ref' is not isolated one.
If 'ref' is decided to be supported, C Layer will have to be re-worked.
2. I can only guess the motivation and rationale for 'ref' in SV.
Most obvious is the performance, but this is already addressed with
our C Layer solution, which actually uses passing by references
whenever it matters.
There are also some semantical consequences of using 'ref' instead
of inout, visible mainly for aliases. But IMO this is very bad programming
style that should be discouraged rather than endorsed by providing
explicit support.
Regards,
Andrzej
This archive was generated by hypermail 2b28 : Fri Feb 28 2003 - 07:54:54 PST