Re: Scoped external function declaration

2015-01-02 Thread ketmar via Digitalmars-d-learn
On Fri, 02 Jan 2015 10:40:22 + novice2 via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: Thanx Daniel, thanx Ketmar. I just thinked that this is some sort of bug. May be DMD should not change mangled name of external function... Bit i dont know. with `extern(C)` it

Re: Scoped external function declaration

2015-01-02 Thread novice2 via Digitalmars-d-learn
Thanx Daniel, thanx Ketmar. I just thinked that this is some sort of bug. May be DMD should not change mangled name of external function... Bit i dont know.

Re: Scoped external function declaration

2015-01-01 Thread ketmar via Digitalmars-d-learn
On Thu, 01 Jan 2015 17:51:45 + novice2 via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: I want to use external or C function. It used only one time from one D function. I want do declare C function inside D function. I don't want to declare C function in global scope.

Re: Scoped external function declaration

2015-01-01 Thread Daniel Kozak via Digitalmars-d-learn
On Thursday, 1 January 2015 at 17:51:46 UTC, novice2 wrote: I want to use external or C function. It used only one time from one D function. I want do declare C function inside D function. I don't want to declare C function in global scope. Is my wish correct? Reduced code: extern (C) int