To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 8450
8449  |  8451
Subject: 
Re: Backwards Compatibility (Was Calling all Meta-commands)
Newsgroups: 
lugnet.cad.dev
Date: 
Sun, 16 Mar 2003 06:22:40 GMT
Viewed: 
1966 times
  
In lugnet.cad.dev, Tim Courtney writes:
In lugnet.cad.dev, Travis Cobbs writes:
Here is my suggestion (just a suggestion, mind you).  All future
meta-commands could look like the following:

0 {META} <command> [arguments]

Where the "0 {META} " signifies a meta-command (the spaces are both
required, but can be repeated), <command> is whatever the name of your
meta-command is, and [arguments] is the optional list of arguments.  Example
(re-do of MPD commands):

0 {META} MPD-FILE <filename>
0 {META} NOFILE

A valid suggestion - but are the braces necessary? Perhaps just the word META.

The main reason I suggested the braces is that they make it basically
impossible for the text to show up at the beginning of a standard comment
line.  In this case, they're probably unnecessary, since META isn't exactly
a common word.


Another suggestion Kevin kicked around with me (and I mentioned it to Steve,
I forget his rection though), was introducing a new line type specifically
for meta-commands. Thoughts on that?

Well, I don't know about other programs, but LDView will throw them in the
error log, but otherwise ignore them.  It would be really easy for me to add
support for the new type and not throw them in the error log, though.

One downside of a new line type is that I think we would need to wait for
fairly wide-spread tool support of the new line type before we could
reasonably make it "official".


One thing I'm concerned about is making it easy for people to hand-edit
files. IMO, the less text someone has to type in, the better. So, a new line
type would be efficient for that (but it could be an inconvenience in
another area, I don't know). OR -- shorter identifiers could be used with
line type 0, or at least no special characters. It's a bit more laborious to
type in

0 {FIELD} blah...

than it is to type

0 FIELD blah...

Once again, my rationale was to avoid having it show up in a comment that
wasn't meant to be a field-specifier.  While probably highly unlikely, I
suppose FIELD could show up at the beginning of a standard comment line.

Come to think of it, the above {META} is somewhat unnecessary.  If we're
going to use braces, then the mere presense of the braces could indicate a
meta-statement.  i.e.:

0 {MPD-FILE} <filename>
0 {NOFILE}
0 {FIELD} Author: Travis Cobbs

If non-programmers think the braces make it too difficult to enter by hand,
I'm comfortable with not having them, and just using 0 META to specify
meta-commands.


Nevertheless - I do think RIGHT NOW the focus should be on documenting what
we have, per Kevin's goals, and LATER we should worry about the future of
meta-commands. One thing at a time.

This seems reasonable.  However, news threads (including this branch of this
one) can't really easily be put on hold.

--Travis Cobbs (tcobbs@REMOVE.halibut.com)



Message has 3 Replies:
  Re: Backwards Compatibility (Was Calling all Meta-commands)
 
(...) I understand the point, but yep - my line of thinking was what you just said, META isn't that common. (...) Ok. (...) Yeah. Well, the suggestion is something new - which ultimately should be considered by a standards body, and not decided upon (...) (22 years ago, 16-Mar-03, to lugnet.cad.dev)
  Re: Backwards Compatibility (Was Calling all Meta-commands)
 
(...) Remember that it is in the current specification that all META-commands be uppercase. I don't know many people that write with caps-lock on but I'm sure it won't happen enough to be a problem. -Orion (22 years ago, 16-Mar-03, to lugnet.cad.dev)
  Re: Backwards Compatibility (Was Calling all Meta-commands)
 
(...) besides, if we add a new linetype, we're breaking LDRAW.EXE and LEDIT.EXE, wouldn't we? (...) I think that's a great idea :) (...) I'm sorry, I can't understand why it's "too difficult" to enter {} by hand. It's on the standard keyboard. The (...) (22 years ago, 16-Mar-03, to lugnet.cad.dev)

Message is in Reply To:
  Re: Backwards Compatibility (Was Calling all Meta-commands)
 
(...) Right. While a lock would be well meant, it just isn't the right approach. (...) Yep. (...) Not selfish in the least, I don't think. If you're doing this for your own enjoyment, why should you be expected to get a group opinion before adding (...) (22 years ago, 16-Mar-03, to lugnet.cad.dev)

154 Messages in This Thread:
(Inline display suppressed due to large size. Click Dots below to view.)
Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR