MySQL Forums
Forum List  »  Newbie

Re: static functions in MySql
Posted by: Rick James
Date: November 03, 2015 12:08AM

IIRC, a "static" function does not work with an "instance" of the "object"; a non-static "method" does.

obj->MyFunction(...) invokes that function with a pointer to the instance.

MyStatic::MyStaticFunction(...) invokes that function without passing in a pointer to the instance.

(I hope my memory is not rusty; I haven't touched C++ in a decade.)

Options: ReplyQuote


Subject
Written By
Posted
October 24, 2015 07:00PM
October 30, 2015 02:16PM
Re: static functions in MySql
November 03, 2015 12:08AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.