Mirror of
forum.nim-lang.org
index
719 :: CT reflection
[2015-01-05T13:05:26+01:00]
View Orginal
yglukhov
(orginal)
[2015-01-05T13:05:26+01:00]
view original
I'm pretty sure, I found a way to iterate over type fields in compile time somewhere in docs, but I cannot find it anymore. Can anyone help please?
def
(orginal)
[2015-01-05T13:22:00+01:00]
view original
This?:
http://nim-lang.org/typeinfo.html#fields.i,TAny
gradha
(orginal)
[2015-01-05T15:04:39+01:00]
view original
Or maybe
http://nim-lang.org/system.html#fieldPairs
.
yglukhov
(orginal)
[2015-01-05T15:42:41+01:00]
view original
Ah, there it is! Thanx!