Named constructors

Ali Çehreli acehreli at yahoo.com
Thu Jan 10 18:12:24 UTC 2019


On 01/10/2019 06:35 AM, JN wrote:

 > the real cost is the fact that you have to create all those structs
 > meticulously and you can only use that with functions that expect such
 > usage.

Weka uses the generic TypedIdentifier for integers:

   https://github.com/weka-io/mecca/blob/master/src/mecca/lib/typedid.d#L532

Ali



More information about the Digitalmars-d mailing list