Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lua Development Tools » LUA development tools not running in order(LuaDevelopmentTools not running in order)
LUA development tools not running in order [message #1014567] Tue, 26 February 2013 04:08 Go to next message
austin anderson is currently offline austin anderson
Messages: 2
Registered: February 2013
Junior Member
Hello people of the internet
i recently got started working with lua, and the LuaDevelopmentTools are a big help. the only problem is, it doesn't run in the right order whenever I use io.read. whenever I use io.read, the program asks for input before any of the other code runs.

i tried a simple code, and it wouldn't work:

print("Enter a Number ")
x = io.read()
print(Your Number is: " .. x)


i even tried it using io.write instead of print

thanks for any help!

P.S: i don't know if i posted this on the right forum, so sorry if I did
Re: LUA development tools not running in order [message #1014777 is a reply to message #1014567] Tue, 26 February 2013 12:55 Go to previous message
Marc Aubry is currently offline Marc Aubry
Messages: 79
Registered: August 2012
Member
Hi Austin,

It's the right forum Smile

LDT execute code in the right order, it's just that your stdout buffer policy is not configurate for your need.

More information on this topic: http://www.eclipse.org/forums/index.php/mv/msg/453033/1009733/#msg_1009733

Marc
Previous Topic:LDT doesn't show up (ubuntu)
Next Topic:Help understanding code assist
Goto Forum:
  


Current Time: Tue Sep 23 04:24:45 GMT 2014

Powered by FUDForum. Page generated in 0.02171 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software