Function prototype + definition in the same file

Manu turkeyman at gmail.com
Wed Sep 26 07:56:59 PDT 2012


On 26 September 2012 14:21, Jacob Carlborg <doob at me.com> wrote:

> On 2012-09-26 12:19, Manu wrote:
>
>  I can't imagine why the example above is hell, but I know nothing about
>> the compiler.
>>
>> I have no idea how the existing bug was implemented, but it needs to be
>> fixed one way or another.
>> It sounds fairly trivial to me to promote a prototype to a definition if
>> a definition is found later in the same module.
>>
>
> If the definition is found first, just ignore the prototype?


Indeed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120926/c20a6a11/attachment.html>


More information about the Digitalmars-d mailing list