Implementing Pure Functions

KennyTM~ kennytm at gmail.com
Fri Jun 17 00:36:49 PDT 2011


On Jun 17, 11 15:32, Walter Bright wrote:
> On 6/16/2011 11:59 PM, Kagamin wrote:
>> I mean that function pointers are not documented to allow dereference
>> operator, that's why behavior of your code is
>> implementation-dependent. You
>> spend too much time writing in C++.
>
> I don't know what you mean.

You should call the function pointer as

     return fp(x);

not

     return (*fp)(x);



More information about the Digitalmars-d mailing list