#Can I use generics for a Library?

1 messages · Page 1 of 1 (latest)

urban wind
#

I'm exposing a function that takes a generics as parameter and I get the error ```bash
error: comptime parameters not allowed in function with calling convention 'C'

Is there a way around it?
halcyon vessel
#

Only as a source library (aka module), not a separate static or shared library.

urban wind
#

Well that defeats the whole purpose of the project

#

but if there is no other way then its ok

#

oh yeah This is the default calling convention when using export on fn

#

there is really no way then