Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

When should a function not be local?
Started by Dotnaught Jan 16 2010 12:04 AM

- - - - -
No replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Dotnaught

[GLOBAL: userInfoPane.html]
Dotnaught
  • Contributor

  • 370 posts
  • Corona SDK

I've noticed that several functions in a game I'm working on throw errors when not declared with local.

I am assuming it's a variable scope issue but am not sure.

Is it simply that functions containing other function calls should be global?
uid: 1560 topic_id: 397 reply_id: 300397



[topic_controls]
[/topic_controls]