brettviren / moo

ruminants on module oriented programming
GNU General Public License v3.0
4 stars 4 forks source link

Use of illegal `dtype` does not lead to early error #1

Closed brettviren closed 3 years ago

brettviren commented 3 years ago

A common mistake is to forget dtype sizes are in bytes not bits. Ie, u32 is not a thing but u4 is. moo support for the number schema class should catch illegal dtypes early and pervasively.

Currently, illegal/unknown dtypes silently lead to wrongly generated C++ like

using MyType = ;