Patterns for overload set recursion disambiguated by named arguments

monkyyy crazymonkyyy at gmail.com
Tue Dec 12 17:45:48 UTC 2023


raylib has a collection of well-organized but verbose functions
https://www.raylib.com/cheatsheet/cheatsheet.html

looking at draw
colors are named `color` or if part of a gradient `color1` and 
`color2`
`posx` and `centerx` are a bit more confusing but it should be 
fine
etc.

So I want to make an extremely overload draw function that 
eventually calls some set of these functions, but Im pretty sure 
that "named arguments dont survive T..." is causing problems for 
me, and I'm unsure how to work around it as I make more complex 
versions.

https://github.com/crazymonkyyy/raylib-2024/blob/master/monkyyylib/monkyyydraw.d

(or alternatively please make named arguments survive T...)


More information about the Digitalmars-d-learn mailing list