Hi!
How do I set a default value for a type that doesn't have any? For example, an object or DateTime?
I know there's default proc that gets the default value for a given type but I couldn't figure out how to use it.
https://nim-lang.github.io/Nim/manual.html#implementation-specific-pragmas-codegendecl-pragma ?
Not sure if I understand the question tho.
There's a similar problem when you define a range type whose default value is not in the range.
Thanks for the clarification!
I always thought the RFC was about the fancy syntax for default values, not the fundamental ability to set them; that I assumed had been possible somehow.
Oh well, I'll use an explicit init proc then.