feat: Template types #45

Merged
glen merged 10 commits from template_types into main 2022-08-05 12:48:57 +00:00
Owner

Includes a full implementation of a type-homogeneous Tuple type, using the template types
feature, as a demonstration/check of its operation.

Includes a full implementation of a type-homogeneous Tuple type, using the template types feature, as a demonstration/check of its operation.
glen added 10 commits 2022-08-05 12:48:38 +00:00
880efac15b feat(gcd,lcm): Allow arbitrarily many arguments
And add an 'associate' predicate for two complex numbers to check the results
5dab7d64e7 fix(templates): Enhance the catchall to call the correct specialization
Also enhances type inference in preparation for template types.
27bf23db54 feat(Tuple): Stub for a template type
This adds the target initial definition of a homogeneous Tuple<T>
  type, and just enough processing that the type can be defined and
  non-template methods that deal with the generic base type Tuple can
  be called. Still has no actual template instantiation.
e82bcf5a9c refactor: Include more code that should work for instantiating type templates
In particular, there is now an empty stub for the function that actually
  installs the instantiations into the PocomathInstance
b0fb004224 feat: Template types for Pocomath
Tuple<T> and a couple of functions on it are now working according to
  the target spec. As desired, no instantiations of a template type
  are made until some function that takes an instantiation is called.
glen merged commit 845a2354c9 into main 2022-08-05 12:48:57 +00:00
glen referenced this issue from a commit 2022-08-05 12:48:57 +00:00
Sign in to join this conversation.
No description provided.