<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>Really I'm aware of most/all of these issues and some of it, sorry, I forgot.<BR>
I forgot that one of Modula-3's (few) strengths, it was ahead of its time, and now everything else except C and C++ have caught up (e.g. Java, C#), is that it easy to parse and easy to build other tools that parse it, instead of the compiler being the only tool by far that understands the language, and be incapable of providing everyone's feature, so you are left with a shortage of functionality, esp. that full works (class browsers and such).<BR>
<BR>
I do rather think the situation is already slightly broken in this regard though.<BR>
That is, there are already generated source files. So either every tool has to know quake (not), or there has to be a place to go to get "the Modula-3 source" and "the Modula-3 source before running quake". I rather suspect this is the package store...except dependency on shipping probably very not good. Perhaps perhaps it is a very simple minimal search algorithm -- look in BUILD_DIR first? Perhaps such tools tend to be able to ignore what they can't find or understand??<BR>
<BR>
And, if I /really/ wanted this feature (not), I would suggest (rather than merely mention :) ) the idea that whenever there was "target preprocessing", the compiler would be obligated to output a "preprocessed" file into BUILD_DIR.<BR>
(This reminds, Metrowerks IDEs have a feature, right click on a file and select "preprocess". It is sorely missing in Visual Studio..it'd also be nice to have a batch mode -- build everything and while you are it, save preprocessed versions of everything, maybe in a compressed tokenized form viewable in the IDE unless I ask for plain text for plain tools)<BR>
<BR>
I didn't realize the subtley of pragmas limited affect, though I think it's still debatable.<BR>
I think it'd be reasonable for other language tools to be confused about the nonexistance of implementations of <*extern*> functions.<BR>
<BR>
- Jay<BR><BR><BR>
<HR id=stopSpelling>
<BR>
> From: hosking@cs.purdue.edu<BR>> Date: Tue, 12 Feb 2008 12:49:21 -0500<BR>> To: jkrell@elego.de<BR>> CC: m3commit@elegosoft.com<BR>> Subject: Re: [M3commit] CVS Update: cm3<BR>> <BR>> There are inherently *BAD* *BAD* things about target preprocessing. <BR>> The baddest thing is that preprocessing is defined separately from <BR>> the language, so any tools that you use to process source files <BR>> (including IDEs) have to smarten up to understand the preprocessors. <BR>> In another project I am involved in it took a year or so to *remove* <BR>> preprocessing crap from the sources so that the project could be <BR>> developed and built using Eclipse.<BR>> <BR>> I would hate to see M3 go the way of C in this regard.<BR>> <BR>> There are more principled ways of doing language-defined (syntactic/ <BR>> checkable/tool-usable) MACROS but in my opinion those approaches will <BR>> add unnecessary complexity and clutter to what is currently a very <BR>> clean Modula-3 language specification. I STRONGLY oppose any notion <BR>> of "preprocessing" for Modula-3.<BR>> <BR>> On Feb 12, 2008, at 1:32 PM, Jay Krell wrote:<BR>> <BR>> > CVSROOT: /usr/cvs<BR>> > Changes by: jkrell@birch. 08/02/12 13:32:58<BR>> ><BR>> > Modified files:<BR>> > cm3/m3-libs/m3core/src/C/Common/: Cstddef.i3 m3makefile<BR>> > cm3/m3-libs/m3core/src/C/NT386/: m3makefile<BR>> > cm3/m3-libs/m3core/src/C/NT386GNU/: m3makefile<BR>> > Added files:<BR>> > cm3/m3-libs/m3core/src/C/Common/: Cstdio.i3 CstdioC.c<BR>> > Removed files:<BR>> > cm3/m3-libs/m3core/src/C/NT386/: Cstdio.i3<BR>> > cm3/m3-libs/m3core/src/C/NT386GNU/: Cstdio.i3<BR>> ><BR>> > Log message:<BR>> > a more complete fairly portable Cstdio.i3, only for NT386 for now<BR>> > (This highlights well where target-preprocessing would be useful,<BR>> > the majority of Cstdio.i3 is completely portable, except possibly<BR>> > for fpos_t, SEEK_SET/CUR/END, and fdopen/fileno, etc.)<BR>> <BR><BR><br /><hr />Climb to the top of the charts! Play the word scramble challenge with star power. <a href='http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan' target='_new'>Play now!</a></body>
</html>