Log of the #nice channel on irc.freenode.net

Using timezone: Central European Time
* CIA-6 leaves01:55
* CIA-6 joins01:56
* arjanb leaves02:32
* Bluelive joins11:14
* Bluelive leaves11:51
* arjanb joins14:59
* CIA-7 joins16:38
* CIA-6 leaves16:39
* fcb joins17:11
hello arjan17:13
I'm having an issue with recursion17:14
because I have to have some sleep I'm going to leave my question and hope you had a chance to answer it in the morning :)17:16
void treeprint(?Node node) {
if(node != null) {
treeprint(node.left);
println(node.value);
treeprint(node.right);
}
}
the above compiles ok17:20
void treeprint(?Node node) {17:21
//if(node != null) {
treeprint(node.left);
println(node.value);
treeprint(node.right);
//}
}
this does not compile - but the error message caused me a bit of trouble:17:22
line 10, column 24:
Arguments (?nicetest.Node) do not fit:
?nicetest.Node nicetest.Node.left
I kept trying to work out what was wrong with my arguments, but is this really the issue?17:23
thanks, arjan
goodnight!
<arjanb>yes you can't access fields on something that maybe null21:00
the error message is quite bad because fieldaccesses are methods internally21:01

Generated by Sualtam