Alias Methods (Center vs Centre)

About Monkey 2 Forums Monkey 2 Programming Help Alias Methods (Center vs Centre)

This topic contains 1 reply, has 2 voices, and was last updated by  nerobot 11 months, 4 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #14187



    As a british english speaker, I often get caught out with the american spelling of center instead of centre.  It doesn’t usually take me long to realise my mistake but it annoys me.  A bit.

    Is it possible to do something like :

    So I could then call Centre() or Center() and the result would be the same?

    Would this be useful for any other use cases?



    Alias keyword is about types, not members.

    For your purposes you can duplicate needed members with good-spelling names and delegate execution to existed ones:

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.