How to create a function declaration?

Marcio Faustino m.faustino.remove at gmail.com
Fri Jan 12 11:52:12 PST 2007


Stewart Gordon wrote:
> You've more or less answered your own question: use a fully-qualified
> name.  Alternatively, use in test.d
>
>      alias my_printf.printf printf;

That's a nice alternative, but I don't want to use that. Suppose someone were
writing a kernel, then the compiler should accept the printf definition he gave
because he won't link against the C library. Even so, the compiler says that
"object.printf" conflicts with "my_printf.printf"... but where??


More information about the Digitalmars-d-learn mailing list