You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Callback-scope handles: no clause presents a callback's argv (sqlite3_value **argv, argc) as &[Value] or sqlite3_user_data as the registered &U (#1611 remainder) #1779
#1611's handle (D71, ruling Amendment 1) makes operations of a handle safe methods: the SQL-function test now calls ctx.result_int(42) with no unsafe. Two parts of an SQL function body still need unsafe, because the Amendment gives no way to express them:
Reading arguments: xFunc(ctx, argc, argv) receives sqlite3_value **argv paired with argc. A clause on the registering fn item could present them as &[Value] (Value a handle) — the pairing is like D64's buffer pairing.
Typed user data: sqlite3_user_data(ctx) returns the void * registered with sqlite3_create_function_v2, which the facade already boxes as the consumed U. A clause could present it as &U.
Both need a generated wrapper around the program's callback. Needs Eric's words (a modeled-C ruling amendment) before implementation.
Activity
Spec v7.8 (D76, modeled-C Amendment 2): process-global state without …
Facade: a callback's arguments as &[Handle] and its registered user d…
examples/c-interop: the facade copy is the toolchain's verbatim, chec…