Procedures use "static dispatch" meaning which overload is called is decided at compile time. What you are asking here is "dynamic dispatch", which are in Nim as multimethods and are made for objects with inheritance and nothing else. To achieve what you want, procedures would have a special rule to have dynamic dispatch that checks equality of arguments to literals/constants, which would be too complex of a rule to be a language feature. Nim is meant to be extensible with macros and this is definitely a feature candidate for a macro library.
- Re: Procedure overloading with explicit parameters SolitudeSF
- Re: Procedure overloading with explicit parameters digitalcraftsman
- Re: Procedure overloading with explicit paramete... reneha
- Re: Procedure overloading with explicit para... doofenstein
- Re: Procedure overloading with explicit ... exelotl
- Re: Procedure overloading with expl... digitalcraftsman
- Re: Procedure overloading with ... bpr
- Re: Procedure overloading with ... sschwarzer
- Re: Procedure overloading with ... mratsim
- Re: Procedure overloading with ... digitalcraftsman
- Re: Procedure overloading with ... Hlaaftana
- Re: Procedure overloading with ... bpr
- Re: Procedure overloading with ... lqdev
- Re: Procedure overloading with ... sschwarzer
- Re: Procedure overloading with ... snej
- Re: Procedure overloading with ... bpr
- Re: Procedure overloading with ... jibal
- Re: Procedure overloading with ... jibal
- Re: Procedure overloading with ... jibal
- Re: Procedure overloading with ... jibal
- Re: Procedure overloading with ... Araq
