comparison tests/parser/function_pointer.d @ 179:2a1a635bd531

Changes the way messages can be displayed. Also added a toString to DType's for type printing.
author Anders Johnsen <skabet@gmail.com>
date Fri, 25 Jul 2008 01:21:07 +0200
parents dc9bf56b7ace
children 08b6ce45b456
comparison
equal deleted inserted replaced
178:5f7e2f2344a5 179:2a1a635bd531
1 1
2 int main() 2 int main()
3 { 3 {
4 f = &foo; 4 f = &&foo;
5 } 5 }
6 6
7 int foo(int x) 7 int foo(int x)
8 { 8 {
9 return x; 9 return x;
10 } 10 }
11 11
12 int function(int x) f; 12 int function(int x)* f;