> No you don't, you can have AbstractKernel be a procNo you don't, you can have 
> AbstractKernel be a proc. 
>     
>     
>     type AbstractKernel[F] = proc(loc: var F) {.nimcall.}
>     
>     
>     Run

I don't understand and have a couple of questions. Firstly, what would be the 
syntax for other kernel functions that inherit? Secondly, the DotKernel 
function is the only function whose type doesn't carry data, the vast majority 
of the other kernel functions do, for example:
    
    
    Gaussian*[T] = ref object of AbstractKernel
        gamma: T
    
    
    Run

Other kernels have different number (and names) of data members so how would 
you represent that with your function types?

Thanks

Reply via email to