Re: [cc65] Directory/Drive functions

Date view Thread view Subject view

From: Groepaz (groepaz_at_gmx.net)
Date: 2003-06-05 17:32:50


On Thursday 05 June 2003 11:21, Ullrich von Bassewitz wrote:
> On Wed, Jun 04, 2003 at 11:33:11PM -0400, Greg King wrote:
> > CBM programs are "sticky" (they stay in memory; we can rerun them without
> > reloading them).  That means that we should avoid static initializers;
> > and, programs should restore their environment, as much as possible.
>
> While I would say that you're right in most cases, I still don't think it
> is true for DEVNUM. Since every file operation changes DEVNUM, programs and
> utilities for the CBMs do not expect DEVNUM to remain unchanged when a
> program is run. And, most C programs cannot be run twice, because static
> data has changed.

actually quite a bunch of tools DO use devnum to find out about the last used 
drive.... however the general advice on using these tools is "reset - load - 
run" too, so no real need for restoring environment :=P

gpz

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-06-05 17:37:56 CEST