equivariant functions
KennyTM~
kennytm at gmail.com
Tue Oct 14 11:45:24 PDT 2008
Denis Koroskin wrote:
> On Tue, 14 Oct 2008 22:16:33 +0400, KennyTM~ <kennytm at gmail.com> wrote:
>
>> “same” seems to be a common identifier though..
>>
>> “inout” already has an equivalent keyword. It is called “ref”.
>
> Yeah, I know :)
> Thanks anyway.
>
> But is there any reason to worry about name collision? I just grep'd
> about 20Mb of C++ source code and didn't find *a single* usage of `same'
> outside of the comments.
Googled "filetype:cpp same" and got ≥1 obscure results:
void series::init()
{
hide = false;
fl_sr2 = same;
fl_ga = same;
fl_gb = same;
// -snip-
}
(http://evgenii.rudnyi.ru/soft/varcomp/varcomp/sumsqrut.cpp)
But no result so far in D. Probably a safe choice after all, but to me
too un-keyword-like :p.
More information about the Digitalmars-d
mailing list