lkml.org 
[lkml]   [2008]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/6] typesafe callbacks
Date
The idea is to create a general typesafe callback mechanism which doesn't 
break compile on existing code and doesn't allow any unsafe callback types.

Al had a very long timer conversion series followed by a different mechanism,
and that just covered timers; unfortunately that technique provides
insufficient typechecking for the general case (eg. int return types and
callback functions which take integer args as well as the data arg).

Note that these typechecks end up being *too* strict in some cases,
disallowing some potentially valid cases. But since you can still use the
current via-void* method, these corner cases lose nothing.



\
 
 \ /
  Last update: 2008-04-21 01:01    [W:0.025 / U:0.548 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site