Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,561 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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,032
Budapest
Aku_Aku Offline
Serious User
Aku_Aku  Offline
Serious User

Joined: Sep 2009
Posts: 1,032
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