comparison tests/parser/function_pointer.d @ 176:dc9bf56b7ace

Can now use & as a unary operator and take an AddressOf
author Anders Johnsen <skabet@gmail.com>
date Thu, 24 Jul 2008 23:03:18 +0200
parents 01c2c49775ef
children 2a1a635bd531
comparison
equal deleted inserted replaced
175:c8e26556c24d 176:dc9bf56b7ace
1 1
2 int main() 2 int main()
3 { 3 {
4 f = &foo;
5 }
6
7 int foo(int x)
8 {
9 return x;
4 } 10 }
5 11
6 int function(int x) f; 12 int function(int x) f;