[Issue 9028] `main` is trated sometimes as having C linkage and sometimes as having D linkage

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 15 01:49:08 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=9028


Maxim Fomin <maxim at maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxim at maxim-fomin.ru


--- Comment #1 from Maxim Fomin <maxim at maxim-fomin.ru> 2012-11-15 01:49:06 PST ---
I don't understand what is the problem here. First of all the code runs on both
win&lin using dmd 2.060 and git head from Dpaste. Secondly I don't understand
how this is related to linkage. Function calls main(null) and (&main)(null) are
equivalent. In the third case you call it indirectly through pointer.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list