Inconsistency with function pointers
Jacob Carlborg
doob at me.com
Sat Aug 4 11:56:22 PDT 2012
On 2012-08-04 18:41, Russel Winder wrote:
> Isn't there an overload for function and one for delegate?
>
> threadFunctionPointerUnnamed.d(5): Error: constructor core.thread.Thread.this called with argument types:
> ((void function()))
> matches both:
> core.thread.Thread.this(void function() fn, ulong sz = cast(ulong)0)
> and:
> core.thread.Thread.this(void delegate() dg, ulong sz = cast(ulong)0)
> Failed: 'dmd' '-v' '-o-' 'threadFunctionPointerUnnamed.d' '-I.'
Hmm, right. I didn't scroll down far enough. Then I don't know.
--
/Jacob Carlborg
More information about the Digitalmars-d-learn
mailing list