gendemo now includes own scalars, & design doc.
Check out the 'HACKME_scalars.md' file for why this commit represents a bunch of nontrivial decisions. There are a lot of possible ways the compile failures here could be fixed, but some of them would have bigger consequences of longterm weirdness than others. Or at least, it certainly looks that way from here. Maybe we'll see. The scalar implementations are almost exact replicates of the basicnode implementations. Oddly, they haven't been exported yet. This may change (again, see discussion in the HACKME_scalars document) -- in which case the code will also change to use wrapper structs. Note one other divergence: the error messages have different content for the typename: we mention the package, since this will probably be typical and useful for codegen-created types in general. The gendemo package almost compiles again. The rest of the fixes aren't related to this topic, so come in the next commit.
Showing
Please register or sign in to comment