|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
D - Re: Preprocessor again
Hi Walter, Since D doesn't seem to have any preprocessing facility (like as C/C++) and the reasons are well known, I think it will be handy to reserve some king of directives which will change the line numeration in sources. The purpose is simple. If I write my own preprocessor, I surely can setup compiling process for 2 stages: preprocessing and compiling. But after preprocessing I will have temporary source file with line numeration that doesn't correspond to original source file. In error messages I want compiler to report the original line #, not the line # of temporary file. The solution is to add directive like '#line nnn' with C'ish meaning. Then during preprocessing I can place this directives in order to save the original line order. What do you think? Nic Tiger. Jan 04 2003
"Nic Tiger" <nictiger progtech.ru> wrote in message news:av7821$qte$1 digitaldaemon.com...The solution is to add directive like '#line nnn' with C'ish meaning. Then during preprocessing I can place this directives in order to save the original line order. What do you think? Jan 05 2003
Ok, it's doable. "Walter" <walter digitalmars.com> сообщил/сообщила в новостях следующее: news:avb8hu$2vil$1 digitaldaemon.com..."Nic Tiger" <nictiger progtech.ru> wrote in message news:av7821$qte$1 digitaldaemon.com...The solution is to add directive like '#line nnn' with C'ish meaning. Then during preprocessing I can place this directives in order to save Jan 06 2003
|