On 2015-04-22 16:32:55 +0000, Dan Olson <zans.is.for.c...@yahoo.com> said:

Since the compile chain knows whether the target system prepends an
underscore, I wonder if it can be bubbled up into some compiler trait or
version that prevents writing versioned code based on system.  I think
it would help gdc much as it has many targets, and many prepend
underscore to symbols.  It would help with unittests like
compilable/cppmangle.d that would have to be tailored for every OS.
that uses gcc3 style C++ mangling.

And you think it's safe to assume all symbols on OS X will always have an underscore as a prefix just because symbols for C and C++ stuff do? (Hint: some Objective-C symbols don't start with "_".)

--
Michel Fortin
michel.for...@michelf.ca
http://michelf.ca

Reply via email to