Sign up

Typo in Container.d?

Hi Mike,
I was just browsing through container.d and line #476 reads:

alias foreac = foreach_;

Should that instead be (with an 'h' at the end of the alias word):

alias foreach = foreach_;


Re: Typo in Container.d?

On 28-01-2019 21:14, Ron Tarrant wrote:

Hi Mike,
I was just browsing through container.d and line #476 reads:

alias foreac = foreach_;

Should that instead be (with an 'h' at the end of the alias word):

alias foreach = foreach_;



Older versions of GtkD handled D keywords in a few different ways, in
this case by dropping the last letter. This was changed to the new
pattern of adding a underscore at the end.

The alias is there for backwards compatibility with older versions of GtkD.