Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import std.stdio : writeln;
  2.  
  3. struct S
  4. {
  5. void foo() const
  6. {
  7. pragma(msg, "Inside foo: ", typeof(&foo));
  8. }
  9. }
  10.  
  11. void main()
  12. {
  13. const s = S();
  14. auto ds = &s.foo;
  15. pragma(msg, "Pointer to s.foo: ", typeof(ds));
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement