Re: [cc65] Common macros for dirent.d_type

From: Groepaz <>
Date: 2012-07-07 12:20:57
On Saturday 07 July 2012, you wrote:
> On 2012-07-07, at 05:13, Groepaz wrote:
> > On Friday 06 July 2012, you wrote:
> >> CBM DOS filetypes are similar in function to beloved msdos filename
> >> extensions, aren't they?
> > 
> > not at ALL.
> Why? They are both part of metadata of the file. They both suggest what the
> content may be. They both suggest what you might do with the file. They
> both impose some restrictions on how they are handled by default...

yet every program i remember that determines what files on a disk it can use 
for whatever, does that by looking at the filename (except geos maybe? :)). 
the filetype is always implied.

> >> Why then examples in the books about programming data access using
> >> sequential files uses SEQ files? Do you think the authors were stupid?
> > 
> > they were making examples for TEXT files.
> Which might be the most common / easiest to explain type of use. Yet I
> don't recall any of them saying "don't use SEQ for anything else than
> textual data". It is rather just plain natural to use SEQ when it comes to
> sequential DATA. Which is BTW the same what CBM DOS does when opening file
> for writing with appropriate secondary address! I admit that for a long
> moment I was fooled by your argument that "BASIC creates PRG by default".
> This is not true as Andre pointed out. It happens only when you use
> channel# 1 (aka sec addr 1), using which is against the rules set in 1541
> manual for example:
>    OPEN file#, device#, channel#, "0:name,type,direction"
> [...] The channel# is a data channel, number 2 through 14 [...]
> Which IMHO takes away the only valid point I thought you had but - OK -
> seems that we keep having different opinions on this matter.

well, as i said, its not so much about what is specified somewhere, but what 
ppl did since 1985. and as for that, "SEQ file" has even become a synonym for 
"petsci text, maybe with C/G graphics" in large parts of the commodore world. 
there is a reason for why eg jiffy dos even has a wedge command to display seq 
files as text - it was incredibly common at some point.


Gerade in einem Land, in dem in den kommenden Wochen die größte offene 
Drogenszene der Welt, nämlich das Münchener Oktoberfest, stattfindet, ist eine 
Liberalisierung weicher Drogen dringend notwendig. 
<Claudia Roth, Bündnis 90/Die Grünen>

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Jul 7 12:21:09 2012

This archive was generated by hypermail 2.1.8 : 2012-07-07 12:21:12 CEST