Gamestudio Links
Zorro Links
Newest Posts
No connection to MT4
by jcl. 10/22/26 10:17
Zorro tutorial ideas?
by mistery. 10/21/26 05:28
Avoid "log\ - delete old files" message
by Martin_HH. 10/20/26 07:23
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (JeyKey II, 1 invisible), 3,432 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
JimSimons, julienp, julienper, KelleyAbbey, Yopachi
19246 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
order of functions. #418841
03/01/13 22:48
03/01/13 22:48
Joined: Dec 2010
Posts: 100
D
Dega Offline OP
Member
Dega  Offline OP
Member
D

Joined: Dec 2010
Posts: 100
Right now I am learning Java and my professor showed me that you can declare other methods in the main method even when they are created after the main method inside the class. I noticed I can't do this in the SED editor. Why is that? Can you actually do that or is not possible with SED?


boolean my.awesomeness = so true;
Re: order of functions. [Re: Dega] #418853
03/02/13 09:03
03/02/13 09:03
Joined: Nov 2011
Posts: 274
de
lemming Offline
Member
lemming  Offline
Member

Joined: Nov 2011
Posts: 274
de
I don't know about Java, but Lite-C is - as the name says - based on C. That's a whole different story. (And has btw nothing to do with SED.)

Re: order of functions. [Re: Dega] #418856
03/02/13 10:06
03/02/13 10:06
Joined: Sep 2009
Posts: 1,035
Budapest
Aku_Aku Offline
Serious User
Aku_Aku  Offline
Serious User

Joined: Sep 2009
Posts: 1,035
Budapest
You can't declare other methods neither in main nor in other functions.
Lite-C is not object oriented language. There are no methods, there are only functions.
You can't declare functions inside another functions.

Last edited by Aku_Aku; 03/02/13 10:08.

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1