Christoffer Lerno

Results 1219 comments of Christoffer Lerno

This is not allowed. You cannot rename types unless it's in a 0.x.0 release. Instead you need to deprecate the old type and add the new. As you see, there...

Also, it's not been accepted yet. So hold on

This is known. There is a question on how far to test vs issue an error. I'll have a look at these and check if we should extend what is...

How do you mean that you want to check the dynamic functions?

The $and and $or compile time functions are explicitly for this, since `&&` will evaluate both sides.

`$echo $and($defined(FooNoInterface.baz), $defined(FooNoInterface.baz(int*{})))`

BTW you might want to rethink this though, if you're already doing it at compile time, there is no need for having an interface. Maybe you're not quite clear on...

For types implementing an interface ad hoc, the expectation is that such an interface is tested at runtime.

This should work in most cases: ```c macro bool @type_has_function_taking_no_args($Type, #func_name) { return @hasfunctionsig($Type.$eval(#func_name), $Type{}.$eval(#func_name)()); } ```