Re: [cc65] Directory/Drive functions

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-06-05 11:21:11


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.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
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 11:21:33 CEST