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
And add an 'associate' predicate for two complex numbers to check the results
Also enhances type inference in preparation for template types.
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.
In particular, there is now an empty stub for the function that actually
  installs the instantiations into the PocomathInstance
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.