Talk:Vala (programming language): Difference between revisions

Content deleted Content added
C++: type, clarification
run(): simplist
Line 16:
However, it would be useful to have a second example, then, that shows a bit more of the syntax.
[[User:Juergbi|Juergbi]] ([[User talk:Juergbi|talk]]) 14:14, 22 June 2008 (UTC)
 
::If it were to be as simple as possible you could drop the glib import and just have the one-liner:
<blockquote><blockquote><source lang="csharp">
void main() { print("Hello World\n"); }
</source></blockquote></blockquote>
 
::[[Special:Contributions/24.243.3.27|24.243.3.27]] ([[User talk:24.243.3.27|talk]]) 09:53, 19 October 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)