What is superloading?

Have a really dumb question? Ask it here to get help from the experts (or those with too much time on their hands)

Moderator: Moderator

Post Reply
Message
Author
dogofgunther
Low Yeek
Posts: 5
Joined: Fri Feb 24, 2017 9:59 pm

What is superloading?

#1 Post by dogofgunther »

Sorry if this should be in the addon or dev forums.

I'm just curious what superloading is. I see the word in some forum posts, and have done some coding, so I'm familiar with overloading, etc, but I couldn't find a definition of what superloading is, or how it differs from overloading.

No real reason for asking, just curiosity

Thanks!

Micbran
Sher'Tul
Posts: 1154
Joined: Sun Jun 15, 2014 12:19 am
Location: Yeehaw, pardner

Re: What is superloading?

#2 Post by Micbran »

Superloading is kinda like you're adding to a function/bit of code and then calling the original function (or doing the latter first and then tacking on your added bit). Generally preferred to overloading as it causes less compatibility issues.

Also these kinds of questions would be better placed in the addons forum. :P
A little bit of a starters guide written by yours truly here.

Post Reply