Hi,

2010/1/20 Michael 'Mickey' Lauer <[email protected]>:
> this works so far, but I can't seem to add a method that actually calls
> the callback, e.g. adding
>
> public void callit()
> {
>        this.cb<T>( new T() );
> }
I have 2 comments on this : it should be just this.cb(..) , <T> is not
needed, and new T() doesn't make sense to me. >
> leads to an assertion at compile time:
>
> ERROR:valasemanticanalyzer.c:2737:vala_semantic_analyzer_get_actual_type: 
> assertion failed: (instance_type != NULL)
> Aborted
You're right, it doesn't work. (I've only tried calling the passed cb
directly from the creation method, and assumed it would also work :-S)

Regards,
Abderrahim
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to