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 / 8504
8503  |  8505
Subject: 
Re: Calling all Meta-commands
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 18 Mar 2003 08:51:03 GMT
Viewed: 
1287 times
  
One approach to namespace management is to have format the commands like so:
0 MODULENAME COMMAND blah

Authors would ask for a unique MODULENAME string to use, and prefix that
in front of any "experimental" commands.  For example, say I want to
create a VRML-style "billboard", a rectangle containing text, with the
centerpoint defined, that always faces the camera, for example to use
for numbering steps.  I'd request the string "LDLITE", and then implement
my new command as:
0 LDLITE BILLBOARD Step 1

Later, some other cad tool might use:
0 L3DGLVIEWCAD BILLBOARD "Step 1"
Since maybe it had trouble with some character and needed quotes,
or just thought they looked nice.

Both authors would propose a new BILLBOARD command to the steering committe,
and discussion would happen about whether the quotes were good, and rev 2.1
of the .DAT syntax would then define the "0 BILLBOARD ..." meta command.  At
which point the tools authors implement the new command, and probably leave
their old command around for compatibility.


If for some reason two tool authors wanted to both support a set of new
commands (for example, having bricks cast shadows), they could ask for a
MODULENAME, such as "X-SHADOW" and then both tools could use commands like
"0 X-SHADOW SHADOW_SOFTNESS=0.5".

-gyug



In lugnet.cad.dev, Larry Pieniazek writes:
In lugnet.cad.dev, Kevin Clague writes:

Would the authors of LDraw compatible applications please list the
meta-commands they have created?  I will compile the list of applications and
the meta-commands they define.

One thing that I think would help reduce namespace pollution is if everyone
did what LTrax did... prefix the command with the app name for uniqueness.
Not a perfect solution, of course.



Message has 1 Reply:
  Re: Calling all Meta-commands
 
(...) This is the approach that Michael Lachman on MLCAD. In an email, where he gave us permission to include his meta-command descriptions in our LDraw specification (yay!) he indicated that he has started to use MLCAD as his module name for all (...) (22 years ago, 19-Mar-03, to lugnet.cad.dev)

Message is in Reply To:
  Re: Calling all Meta-commands
 
(...) One thing that I think would help reduce namespace pollution is if everyone did what LTrax did... prefix the command with the app name for uniqueness. Not a perfect solution, of course. (22 years ago, 14-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