Any ideas on what could be a better error message?

On 2014-09-10 10:53:18, equinox wrote:
> Hi all,
>
>
> use NativeCall;
> class TopWindow is repr('CPointer') {
> multi sub TopWindow_TopWindow_c() returns OpaquePointer is
> native("ultimatewindll") { * } #symbol('TopWindow_TopWindow_c')
>
> multi method new() {
> return TopWindow_TopWindow_c();}
>
> }
>
>
> TopWindow.new();
>
>
> This gives me
>
> Cannot invoke object with invocation handler in this context
> in sub TopWindow_TopWindow_c at D:\m\p6\nativecalltest2.p6:3
> in method new at D:\m\p6\nativecalltest2.p6:5
> in block at D:\m\p6\nativecalltest2.p6:11
>
>
> jaffa4
>

Reply via email to