[Issue 11008] Allow -main switch even if user-defined main function exists

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 10 21:27:33 PDT 2013


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


Jonathan M Davis <jmdavisProg at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmx.com


--- Comment #1 from Jonathan M Davis <jmdavisProg at gmx.com> 2013-09-10 21:27:32 PDT ---
It could also be argued that it's misleading if -main works when there's
already a main function, because instead of simply running the unit tests, the
main is going to do whatever the already included main function does. Giving
the user an error alerts them to the fact that they're trying to add a main
when there already is one (one which almost certainly doesn't do what they
want). So, it seems to me that not having -main error out gains us little and
causes problems when someone tries to use -main when they already have a main
function defined.

-- 
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