repo.or.cz
/
chuck-blob.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
*** empty log message ***
[chuck-blob.git]
/
v2
/
test
/
p57.ck
blob
e1c683862516bdf6cc2d8e4cf7653b5df5f54ae8
1
// member function assigns value to class members...
2
// should wait 1 second
3
class Obj {
4
int x;
5
int y;
6
public void set( int a, int b) {
7
a => x;
8
b => y;
9
}
10
}
11
12
Obj o;
13
o.set( 1, 2 );
14
Obj p;
15
p.set( 3, 4 );
16
17
if ( o.x != p.x ) <<<"success">>>;