nim

Return sequence of generic type from parent class

Return sequence of generic type from parent class
In the example below, I have aFooobject that has a genericTand afoofield of typeT.TheFoois inheritable and has a proc namedtestthat should create and return a sequence of typeTas defined by a subclass.In the latest version of my code, there's an erro

How can I create a new primitive type using C++11 style strong typedefs?

How can I create a new primitive type using C++11 style strong typedefs?
I'm trying to emulate in C++ adistinct typefrom theNim programming language. The following example won't compile in Nim because the compiler catches the variableseanddhaving different types (Error: type mismatch: got (Euros, float)) despite both bein
What Others Are Reading