rdmd --main

spir denis.spir at gmail.com
Mon Nov 22 10:53:15 PST 2010


Hello,


The rdmd option --main is really helpful to test modules independently (it adds an empty main() to prevent the linker from crying). An issue is that each time we switch between .d files that have no main() (modules in tended for export) and app files that have one, this option must be set or removed (else the linker complains for having 2 main()).
This is not very practicle for rapid edit-test cycles -- for "exploratory" programming in general. Would it be difficult for rdmd to detect whether a main is already present? It is not a big issue anyway -- just in case would be easy.

Thank you very much for this tool, Andrei.


Denis
-- -- -- -- -- -- --
vit esse estrany ☣

spir.wikidot.com



More information about the Digitalmars-d mailing list