#Is this method calling itself, is this why it loops ?

11 messages · Page 1 of 1 (latest)

covert narwhal
#

Main method calls for electrify method, this method then executes it's body, now from inside it's body it calls itself which again executes it's body and this goes on... Am I right or wrong, if wrong what information am I missing??

silent berryBOT
#

This post has been reserved for your question.

Hey @covert narwhal! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

unkempt sage
#

yeah

#

that's what's happening

covert narwhal
#

@unkempt sage Thank you

silent berryBOT
# covert narwhal <@1067125865785344031> Thank you

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.

grand fiber
#

There is a kind of function which is called recursive, that inside it's body it calls itself, until it reaches a stopping point, or in other words, reaches a value or a condition that you want.
I'm not sure that this is what you're trying to do, but if not, there's no need to call electrify on itself.
Are you doing it in order to return a value that is of the class pikachu?

covert narwhal
#

no

#

i'm studying return

#

and it's behaviour