Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import std.stdio;
- struct S
- {
- }
- void foo(S* s) { writeln("2"); }
- void main()
- {
- S a;
- a.foo();
- S *b = new S;
- b.foo();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement