Re:Ooc - modern object oriented c
by joss82 on Thursday October 15, 2009 @09:46AM
(#883358)
Thanks for the docs, what a quick and effective feedback !
Let's have a look at the "hello world" :
"Hello world!" println()
It is simple and short but makes no sense to me because the print function takes no argument and doesn't seem linked to the string "Hello world!" it prints.
When a function manipulate data, shouldn't it be passed as argument ? I would understand better:
println("Hello world!")
But maybe it's because it's not the first time I read code.
Re:Ooc - modern object oriented c
by 0x44 on Thursday October 15, 2009 @05:16PM
(#884288)
println() isn't a function, it's a method/message passed to the "Hello world!" string object. The lack of syntax highlighting that (the strange dots) makes it difficult to notice.
Let's have a look at the "hello world" :
"Hello world!" println()
It is simple and short but makes no sense to me because the print function takes no argument and doesn't seem linked to the string "Hello world!" it prints.
When a function manipulate data, shouldn't it be passed as argument ? I would understand better:
println("Hello world!")
But maybe it's because it's not the first time I read code.
EDIT : OK, I just read your group post. Thanks.