Function Call

I need to call a function above from where it is declared. but it always gives me an error. I  tried using 

[lua] local function_name [/lua]

as a means of forward declaring the function but that didn’t work. Kindly help.

local function_name

then

function_name = function()

Is this the same person who filed this question: https://forums.coronalabs.com/topic/65037-problem-with-forward-declaration-of-the-functions/#entry335927

If not, are you taking a course or class?  I ask because this is basically the same question, which is really weird … kinda cool actually. :slight_smile:

If you are the same person, please don’t double post (especially w/ different accounts).

local function_name

then

function_name = function()

Is this the same person who filed this question: https://forums.coronalabs.com/topic/65037-problem-with-forward-declaration-of-the-functions/#entry335927

If not, are you taking a course or class?  I ask because this is basically the same question, which is really weird … kinda cool actually. :slight_smile:

If you are the same person, please don’t double post (especially w/ different accounts).