www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Standard bug: "extern:" is not an alias for "extern (D):"

reply Burton Radons <burton-radons smocky.com> writes:
The standard (http://www.digitalmars.com/d/attribute.html) says:

    D conventions are:

	extern (D):
	

    or:

	extern:

In fact, extern without a linkage attribute inherits the current linkage 
attribute.  So this:

    extern (C):
    extern:
        void memmove ();

And this:

    extern (C):
        void memmove ();

Are functionally identical.  Walter, please respond to this post with 
how you're going to fix it.
	
Oct 17 2004
parent "Walter" <newshound digitalmars.com> writes:
Perhaps it should be an error to not specify a linkage.

"Burton Radons" <burton-radons smocky.com> wrote in message
news:cku6qn$o14$1 digitaldaemon.com...
 The standard (http://www.digitalmars.com/d/attribute.html) says:

     D conventions are:

 extern (D):


     or:

 extern:

 In fact, extern without a linkage attribute inherits the current linkage
 attribute.  So this:

     extern (C):
     extern:
         void memmove ();

 And this:

     extern (C):
         void memmove ();

 Are functionally identical.  Walter, please respond to this post with
 how you're going to fix it.

Oct 26 2004