This is largely an obscure feature. You don’t really need to use t-kind;
you can use ‘t@ype’ instead.On Sunday, January 4, 2015 12:23:13 AM UTC-5, Kiwamu Okabe wrote:
Hi all,
Sometimes, I encounter that I should wrap C language datatypes with
ATS2’s strong types.
ATS2 can’t understand size of the type using simply wrapping.
However, ATS2 prelude can easily manage the size of type “uint64”,
while body of the “uint64” is defined at C language.
I guess it realizes on ATS2 “kind” mechanism.
A t-kind is essentially an abstract type that is solely needed for its name.
As I mentioned in an earlier message, this feature is obscure and should be
avoided. It is also readily avoidable.On Wednesday, May 13, 2015 at 11:29:50 AM UTC-4, Yannick Duchêne wrote:
Le dimanche 4 janvier 2015 08:12:50 UTC+1, gmhwxi a écrit :
A kind (or t-kind) is essentially a name for an external type.
The keyword ‘tkindef’ introduces a t-kind. Here is an example: