delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/01/19:50:04

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro Datafiles Stuph...
Date: Tue, 27 May 1997 19:16:36 +0100
Organization: None
Distribution: world
Message-ID: <EneyNAAEUyizEwGN@talula.demon.co.uk>
References: <5m39k7$2hga AT elmo DOT cadvision DOT com>
<mL962MAE1ehzEw5e AT talula DOT demon DOT co DOT uk> <5mdlqs$2ufu AT elmo DOT cadvision DOT com>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 17
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Calvin French writes:
>problems. Anyways, I do have one more question. Is there a way to load a 
>datafile object strictly by NUMBER (rather than name)? All my other 

Easy: just give them names like "1", "2", "3" etc :-)

If you really want to do it by position index, it would be a fairly
simple change to the load_datafile_object() function, but I think that
would be quite a dangerous approach. When you are reading individual
objects out of an archive file, it seems a bit risky to write code that
depends on the precise ordering of the archive. Using ASCII object names
is much safer...


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019