Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Which lua functions can I use? dofile is one of them?
Started by d3mac123 May 01 2010 03:53 AM

- - - - -
3 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

d3mac123

[GLOBAL: userInfoPane.html]
d3mac123
  • Contributor

  • 248 posts
  • Corona SDK

I am trying to use the dofile function but the console keeps returning me the following error:
Runtime error
cannot open dataTest.lua: No such file or directory
stack traceback:
[C]: ?
[C]: in function 'dofile'
/Users/mac/Documents/zero9 apps/myDemos/main.lua:16: in main chunk
Runtime error: cannot open dataTest.lua: No such file or directory
stack traceback:
[C]: ?
[C]: in function 'dofile'
/Users/mac/Documents/zero9 apps/myDemos/main.lua:16: in main chunk

Is it available in Corona?

Is there a full documentation on which functions does Corona support?
Thanks,
Alex
uid: 4883 topic_id: 896 reply_id: 300896


[TOPIC: post.html]
#2

MikeHart

[GLOBAL: userInfoPane.html]
MikeHart
  • Corona Geek

  • 1,278 posts
  • Corona SDK

To my knowledge, you can't use dofile. It is disabled on purpose to be more close to Apple's TOS.
uid: 5712 topic_id: 896 reply_id: 2080


[TOPIC: post.html]
#3

s.w.powers

[GLOBAL: userInfoPane.html]
s.w.powers
  • Contributor

  • 159 posts
  • Guests

Why do you need it? Are you trying to execute dynamically generated code at run-time? That can be a serious security risk in some cases.

uid: 5659 topic_id: 896 reply_id: 2092


[TOPIC: post.html]
#4

d3mac123

[GLOBAL: userInfoPane.html]
d3mac123
  • Contributor

  • 248 posts
  • Corona SDK

I was just following the example in the blue book about data description.
uid: 4883 topic_id: 896 reply_id: 2114



[topic_controls]
[/topic_controls]