Re: Define a procedure on a type itself ?
Thanks! I am so glad it exists :)
Re: Define a procedure on a type itself ?
It is. Replace `Type` with `type` or `typedesc`.
Define a procedure on a type itself ?
Hi everyone, I am wondering if it is possible to define a procedure on a type itself ? Coming from the Python world, it would be called a _class method_ or a _static method_. I really like to use this kind of syntax to create objects, and in Nim I imagine it could work like