Renaming Flag!"" in API

FreeSlave freeslave93 at
Mon Oct 12 15:13:45 UTC 2020

On Monday, 12 October 2020 at 11:34:25 UTC, Vladimir Panteleev 
> On Monday, 12 October 2020 at 10:24:44 UTC, FreeSlave wrote:
>> Can this issue overcome somehow?
> Why not add a deprecated overload for your function which takes 
> the old Flag value?

I thought about overloading too. Templatizing the parameter is 
fitting too especially if the function is already templated. I 
think I'll go with the latter.
Yet in general it would be a tedious work to add template 
constraints or overloads (and in case of overloads there's also a 
lot of copy-pasting included) to all functions that use this flag 
as parameter if there were too many of them. Some way to declare 
two flag types as implicitly convertable would be nice.

More information about the Digitalmars-d-learn mailing list