From: Michael K. <ki...@cs...> - 2005-03-08 22:37:56
|
.pl is also used for Perl, by the way. I think it is bad to hard-wire .pl into the code. It is never a good programming practice to use explicit constants scattered out in the code. One of my students who was an intern at Microsoft told me that his boss warned the interns that if he sees any constant other than 0 or 1 in their code -- they are fired. Although, apparently, this policy alone cannot fix all MSs problems with the code, at least they are trying ... And so should we. --michael > I dont think this will cause problems, but ... > > Changed consult/compile to use .pl and XSB_SRC_EXTENSION (.P) files > interchangably, with preference for XSB_SRC_EXTENSION files. .pl > files are handled as are XSB_SRC_EXTENSION files, compared to > XSB_OBJECT_EXTENSION (.xwam) files used with .H files,etc. However if > there is a .P file the .pl wont be examined (even if the .pl file is > newer) > > Unlike the extensions .pl is hard-wired -- as this is what other > Prologs mostly use. > > I've been using the changes here for about 2 weeks, and haven't > noticed any problems. > > Terry > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Xsb-development mailing list > Xsb...@li... > https://lists.sourceforge.net/lists/listinfo/xsb-development > |