Re: Define a procedure on a type itself ?

2019-10-11 Thread ducdetronquito
Thanks! I am so glad it exists :)

Re: Define a procedure on a type itself ?

2019-10-11 Thread jasper
It is. Replace `Type` with `type` or `typedesc`.

Define a procedure on a type itself ?

2019-10-11 Thread ducdetronquito
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