Re: [cc65] Common macros for dirent.d_type

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2012-07-05 23:06:29
On Wed, Jul 04, 2012 at 08:37:34PM +0200, Groepaz wrote:
> ofcourse, it doesnt make it more reasonable however. choosing anything but PRG
> - which is the type of probably more than 99% of all real existing files out
> there - is just that.

That may be true, but only because 99.999% of anything that can be downloaded
from the web are some cracked C64 executables.

This is the situation as I have understood it now:

  - reading existing files is never a problem, because the cc65 libs don't
    append a file type when opening a file, so files of all types may be
    opened without any further measures.

  - appending to existing files is currently a problem, because the cc65 libs
    add a file type when opening, which means the open will fail if the type
    is wrong. But append operations are quite rare, and the behaviour of the
    library can be easily changed.

  - creating new files is the only operation where the file type might be a
    problem. But *only* if other programs specify a file type when opening,
    which - as I've learned now - is a bad idea anyway. On the cc65 side,
    files of any type are easily created by a simple assignment to a global
    variable.

I have to admit, that all this doesn't look like a serious shortcoming to me.
  
Just out of curiosity: What type of file does the BASIC OPEN statement create
by default?

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Jul 5 23:07:43 2012

This archive was generated by hypermail 2.1.8 : 2012-07-05 23:07:46 CEST