Is there any reason why in can't work with dynamic arrays?

Adam D. Ruppe destructionator at gmail.com
Wed Sep 18 21:07:35 UTC 2019


On Wednesday, 18 September 2019 at 20:57:34 UTC, jmh530 wrote:
> The error was:
> onlineapp.d(11): Error: alias `onlineapp.keys` conflicts with 
> template onlineapp.keys(T)(T[] t) at onlineapp.d(10)

huh yeah, it looks like it only works on the dmd 2.088 and above, 
probably because the template overloading rules changed.

well regardless you can just leave it out to get the same idea 
too. maybe rename to avoid any potential conflict. (though even 
if a name does conflict, you can always use the full object.keys 
name to disambiguate)


More information about the Digitalmars-d mailing list