auto storage class - infer or RAII?

Bill Baxter dnewsgroup at billbaxter.com
Tue Nov 14 16:19:22 PST 2006


Kristian Kilpi wrote:
> On Sun, 12 Nov 2006 20:59:05 +0200, Walter Bright 
> <newshound at digitalmars.com> wrote:
> 
> The following (shorthand) notation won't have that problem:
> 
>   Class c();

Does D have the same extern declaration ambiguity as C++?
In C++ some compilers at least interpret that to be an extern 
declaration for a function 'c' that returns a "Class" and takes no 
parameters.  So instead you have to say

    Class c;


I don't know if D suffers from this particular ambiguity or not.

--bb



More information about the Digitalmars-d mailing list