Gauche
Gauche copied to clipboard
More type info of cproc
Currently, we keep the type info of subrs defined with define-cproc
stub form, but it is limited to simple stub types. It is nice if we allow descriptive types in arguments and return types.
In C level, descriptive types are all ScmObj
. Currnet cproc routines all do runtime typecheck of such argument in the body, so we may not even need automated runtime type checking; they are purely for metainformation attached to the procedure.
The first step is to refactor typed variable parse routine from gauche.cgen.cise
; we can share the code for subrs and CiSEs.