How to create a function declaration?

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Fri Jan 12 12:54:49 PST 2007


Marcio Faustino wrote:
> 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??

If one is writing a kernel, one probably modifies object.d ;).
At least, that's what I did...
(Actually, printf was the first thing to get removed :P)


More information about the Digitalmars-d-learn mailing list