Talk:Vala (programming language): Difference between revisions

Content deleted Content added
Pmg (talk | contribs)
run(): why the main entry point might be placed inside a class body
Line 17:
[[User:Juergbi|Juergbi]] ([[User talk:Juergbi|talk]]) 14:14, 22 June 2008 (UTC)
: In the "object oriented" example, why is the static main function placed within the object? The static main may as just as well be placed in the global scope, which I think maps closer to how the OS launches the program. [[User:Pmg|Pmg]] ([[User talk:Pmg|talk]]) 06:28, 3 September 2008 (UTC)
 
::One reason (not applicable to this example), would be so that main can access private/protected class members and methods. [[Special:Contributions/24.243.3.27|24.243.3.27]] ([[User talk:24.243.3.27|talk]]) 07:12, 22 September 2008 (UTC)
 
= C++ =