Gauche icon indicating copy to clipboard operation
Gauche copied to clipboard

More type info of cproc

Open shirok opened this issue 8 months ago • 0 comments

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.

shirok avatar Nov 21 '23 05:11 shirok