Expose objects to nimscript?

2018-02-08 Thread rku
Is it possible to expose objects to nimscript? Does any example exist?

Re: Constructors via typedesc[] arguments

2017-05-30 Thread rku
And i would like to share a macro for same pattern: import macros import tables macro ctor*(none: untyped): auto = let args = callsite() if args[1].kind != nnkProcDef: error("`ctor` pragma is used only with procedures.") var prc = args[1]

Re: Nim Syntax ''Skins''

2017-02-23 Thread rku
IMHO skins are cancer. Problem of Nim is that it is trying to be best-everything all at once. Result of this is over a decade of unstable language which did not reach 1.0 yet. Yes, we all have our own tastes. I dislike some stuff in nim as well. I can get used to them if language is solving my