[Vm-dev] Better type than void* for primitiveFunctionPointer?
piumarta at speakeasy.net
Tue Apr 15 20:20:53 UTC 2008
On Apr 15, 2008, at 1:09 PM, tim Rowledge wrote:
> On 15-Apr-08, at 1:05 PM, Ian Piumarta wrote:
>> On Apr 15, 2008, at 12:41 PM, Andreas Raab wrote:
>>> I think only Ian knows what "this stupidity" is.
>> Casting a function pointer to a void * is not guaranteed to yield
>> a pointer with the same address, nor does casting it back. The
>> stupidity was the (imposed?) use void * where a pointer to
>> function was required.
> So what ought to be there is...... ?
returnType (*functionName)(arg1type, arg2type, ..., argNtype)
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> C++ is history repeated as tragedy. Java is history repeated as farce.
More information about the Vm-dev