Operators overloading in extensions

About Monkey 2 Forums Monkey 2 Code Library Operators overloading in extensions

This topic contains 0 replies, has 1 voice, and was last updated by  nerobot 1 year, 6 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #11214

    nerobot
    Participant

    We can overload operators in extension classes / structs to get profit.

    Case #1: adding / removing items in containers by += and -=:

    Similar code for List & Deque.

    Usage: list+=value , list-=value

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.