Mirror of
forum.nim-lang.org
index
9776 :: Extracting multiple base types on FFI
[2022-12-29T15:07:34+01:00]
View Orginal
sls1005
(orginal)
[2022-12-29T15:07:34+01:00]
view original
In a format string for
{.importcpp.}
,
'1
is the type of the 1st argument,
'*1
is the 1st base type of the 1st argument, then how to get the 2nd base type of the 1st argument (e.g.
B
from
Table[A, B]
) ?
Araq
(orginal)
[2022-12-29T16:50:16+01:00]
view original
Not sure, via
'*2
?
sls1005
(orginal)
[2022-12-30T02:49:53+01:00]
view original
No, it's the 1st generic type argument of the 2nd argument, not the 2nd generic type argument of the 1st argument.