projects
/
rune.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Rune - Further Object abstraction work
[rune.git]
/
tests
/
overload.d
1
#!/usr/local/bin/rune -x
2
#
3
# should fail at parse time,
4
# this style of overloading is not currently implemented.
5
6
import "sys";
7
import <stdio>;
8
9
int
10
main(int ac, string_p *av)
11
{
12
fubar("hello");
13
fubar(23);
14
}
15
16
void
17
fubar(string_p str)
18
{
19
stdio.stdout->show("string ", str);
20
}
21
22
void
23
fubar(int v)
24
{
25
stdio.stdout->show("value", v);
26
}