I’m sure I’m missing something simple, but when I have a line like this:
val x = 10 : size_t 10
I get an error like this:
error(3): the dynamic expression cannot be assigned the type [S2Eapp(S2Ecst(g1uint_int_t0ype); S2Ecst(size_kind), S2Eintinf(10))].
error(3): mismatch of static terms (tyleq):
The actual term is: S2Eapp(S2Ecst(g1int_int_t0ype); S2Ecst(int_kind), S2Eintinf(10))
The needed term is: S2Eapp(S2Ecst(g1uint_int_t0ype); S2Ecst(size_kind), S2Eintinf(10))
The error message seems straightforward, but I’m not sure how to proceed.
Also, is there somewhere I can read more about kinds and tkindef and all? Is it similar to kinds in Haskell?
As long as the actual cast is supported in C, it is fine to do it.
Also, is there somewhere I can read more about kinds and tkindef and all?
Is it similar to kinds in Haskell?
Not really. A ‘tkind’ is like an abstract type for which no values can be
constructed. You can always do without it.On Wednesday, April 15, 2015 at 9:27:13 PM UTC-4, Shea Levy wrote:
Hi all,
I’m sure I’m missing something simple, but when I have a line like this:
val x = 10 : size_t 10
I get an error like this:
error(3): the dynamic expression cannot be assigned the type
[S2Eapp(S2Ecst(g1uint_int_t0ype); S2Ecst(size_kind), S2Eintinf(10))].
error(3): mismatch of static terms (tyleq):
The actual term is: S2Eapp(S2Ecst(g1int_int_t0ype); S2Ecst(int_kind),
S2Eintinf(10))
The needed term is: S2Eapp(S2Ecst(g1uint_int_t0ype); S2Ecst(size_kind),
S2Eintinf(10))
The error message seems straightforward, but I’m not sure how to proceed.
Also, is there somewhere I can read more about kinds and tkindef and all?
Is it similar to kinds in Haskell?
val x = (g1int2uint<int_kind, size_kind>(10)) : size_t 10> On Apr 15, 2015, at 9:27 PM, Shea Levy sh...@shealevy.com wrote:
Hi all,
I’m sure I’m missing something simple, but when I have a line like this:
val x = 10 : size_t 10
I get an error like this:
error(3): the dynamic expression cannot be assigned the type [S2Eapp(S2Ecst(g1uint_int_t0ype); S2Ecst(size_kind), S2Eintinf(10))].
error(3): mismatch of static terms (tyleq):
The actual term is: S2Eapp(S2Ecst(g1int_int_t0ype); S2Ecst(int_kind), S2Eintinf(10))
The needed term is: S2Eapp(S2Ecst(g1uint_int_t0ype); S2Ecst(size_kind), S2Eintinf(10))
The error message seems straightforward, but I’m not sure how to proceed.
Also, is there somewhere I can read more about kinds and tkindef and all? Is it similar to kinds in Haskell?