# New Ticket Created by Benjamin Goldberg # Please include the string: [perl #131401] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=131401 >
In C, it’s possible to use typedefs for all sorts of things, including: typedef int (*callback_t)( struct node_t * n, void *user_data ); void walk_tree( struct tree_t *t, callback_t c, void * user_data ); It would be nice if there existed some way define, in perl6, an equivalent of callback_t which would work with NativeCall. At present, the subsignatures of a callback must be fully written out, and that can get very tedious if there are several functions which take the same type of callback. I’m not sure of the best way to do this, honestly.