Hacker News new | ask | show | jobs
by planede 750 days ago
> which in this case would simply be appending the namespace name to the identifier

surely not. How do you differentiate these two functions?

  void fooN(void);
  
  namespace N { void foo(void); }
1 comments

[I meant to write prepend, but that doesn't change the argument]

You would mangle it as something like foo$N depending on the platform.