Subject:
|
Re: IMPORTANT - [ldraw.org] Official Model Repository
|
Newsgroups:
|
lugnet.cad.dev.org.ldraw
|
Date:
|
Sun, 13 Jun 1999 23:01:49 GMT
|
Viewed:
|
1241 times
|
| |
| |
In lugnet.cad.dev.org.ldraw, braml@juno.com (Bram Lambrecht) writes:
> lehman@javanet.com (Todd Lehman) writes:
> > > Now we should really test how well sub-directories work with the
> > > current software and how to handle them correctly.
> > > For example, if main1.dat calls m1-a.dat, should the reference be:
> > > 1 ... sets\xxxxz-yy\m1-a.dat
> > > or
> > > 1 ... m1-a.dat
> > > ?
> >
> > Heh heh. Excellent point. It depends if the software does a chdir
> > into the model's directory after loading it (or equivalent hand-waving).
> > I'd be *extremely* impressed if LEdit & LDraw did this.
>
> The 'sets\xxxxz-yy\' is necessary.
OK, well, having to explicitly use 'sets\xxxxz-yy\' isn't really that much
of a handicap in the grand scheme of things. It would've just been a
bonus/freebie not to have to use it; but it's not a real problem, right?
> I think it's safe to say that if you
> built the model in LEdit using subdirs, and all the components showed up
> correctly in LEdit, all other programs will also handle the sub-dirs
> correctly.
Yeh, I agree -- there's a very good chance of that. It's typical for most
code that reads files to "just work" with subdirectories even if it wasn't
written with them in mind. (Writing files is a bit of a different story,
but usually only if missing directories have to be created on-the-fly.) As
long the filename buffer on the stack is, say, 64 or 80 or 128 characters or
more, then the program shouldn't crash from writing off the end of a string
if the length goes unchecked. And that's usually only an issue in low-level
languages like C, anyway. (James wrote LEdit in Turbo Pascal, right?
Pascal has string overflow checking built-in.)
--Todd
|
|
Message has 1 Reply:
Message is in Reply To:
94 Messages in This Thread:
- 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
|
|
|
|