Greetings,
I have a user created struct, let's call this "**fakeArray**":
For all intents and purposes fakeArray behaves like an array (or
slice, I guess).
(i.e. It has a number of operator overloadings, and *foreach*
extensions implemented.)
I have a fairly large number of function in a module that accept
arrays (or slices).
These are implemented as:
**auto foo(T)(T[] x) { ... }**
So, foo will accept "official" arrays and slices.
What is the easiest way to coerce all my functions to also
accept my fakeArray?
Regards,
James