Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, 1 invisible), 584 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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: 993
Budapest
Aku_Aku Offline
User
Aku_Aku  Offline
User

Joined: Sep 2009
Posts: 993
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 | chip programmers | 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