Re: [Wesnoth-dev] Changing the WML include file syntax.

2007-05-25 Thread ott
On Thu, May 24, 2007 at 04:56:08PM -0400, esr wrote: That is the fact that zero-argument macro references and file inclusions are syntactically indistinguishable Definitely a headache as it is now, and a net win to change it. -- [EMAIL PROTECTED]

Re: [Wesnoth-dev] Changing the WML include file syntax.

2007-05-25 Thread ott
On Thu, May 24, 2007 at 11:20:17PM +0200, Benoit wrote: The problem i see with #include is it is less powerful that our current system. I have an alternate suggestion : - change current file inclusion to {%filename} instead of {filename} (that will be disallowed) (or use any other character

Re: [Wesnoth-dev] Changing the WML include file syntax.

2007-05-24 Thread Bruno Wolff III
On Thu, May 24, 2007 at 16:56:08 -0400, Eric S. Raymond [EMAIL PROTECTED] wrote: 1. We implement #include, just as in the C preprocessor and for consistency with the existing C=like #ifdef/#else/#endif. Are you going to fix up including directories some way at the same time? This would

Re: [Wesnoth-dev] Changing the WML include file syntax.

2007-05-24 Thread Benoit . TIMBERT
On Thu, May 24, 2007 at 04:56:08PM -0400, Eric S. Raymond wrote: I enjoy special-purpose languages and language-like markups. I have a great deal of experience at designing, implementing, and evaluating such things. Accordingly, there's a a lot of stuff about design principles and pragmatics

Re: [Wesnoth-dev] Changing the WML include file syntax.

2007-05-24 Thread Eric S. Raymond
Bruno Wolff III [EMAIL PROTECTED]: Are you going to fix up including directories some way at the same time? This would probably be an opportune time to make changes in that regard, since all of the includes will be being changed. Only if it's a change that can be made nechanically by wmllint.

Re: [Wesnoth-dev] Changing the WML include file syntax.

2007-05-24 Thread Eric S. Raymond
[EMAIL PROTECTED] [EMAIL PROTECTED]: The problem i see with #include is it is less powerful that our current system. With current system we can include any file we want in a middle of a line, which might not be possible with #include. mapdata={foo.map} is only the most usual case, but there

Re: [Wesnoth-dev] Changing the WML include file syntax.

2007-05-24 Thread Benoit . TIMBERT
On Thu, May 24, 2007 at 06:58:34PM -0400, Eric S. Raymond wrote: [EMAIL PROTECTED] [EMAIL PROTECTED]: The problem i see with #include is it is less powerful that our current system. With current system we can include any file we want in a middle of a line, which might not be possible

Re: [Wesnoth-dev] Changing the WML include file syntax.

2007-05-24 Thread Alink
Indeed I support the basic idea of differentiate file and macro. As a coder, I also like the #include but as it was said you will lose power. It's possible. But it's also possible that file inclusions in mid-line are something we shouldn't be doing, or can be more cleanly handled in a