Re: [cc65] Filenames for POSIX functins on CBM targets

From: <silverdr1wfmh.org.pl>
Date: 2012-08-09 22:00:53
On 2012-08-09, at 20:54, Groepaz wrote:

>>>> Thinking aloud (might be completely bad idea)... how about something in
>>>> unix style (so that it could fit somehow into POSIX ways):
>>>> 
>>>> "/floppy/unit/subunit/file"
>>> 
>>> urks. please not. the unit number is so useless and so few people would
>>> actually need them, its a perfect candidate for some "magic variable".
>> 
>> Like setting variable to one value, opening one file, setting variable to
>> another value, opening another file on a different drive?
>> 
>> That would mean two variables. One for device (8, 9, ..) and another one
>> for drive (0,1), right?
> 
> i'd put the device number into the string, as its much more logical and does 
> much more work similar to other systems and the "expected" way.
> 
> and ofcourse that is a good reason for not doing it, too =)

Somehow I don't like it - so good reason indeed. Besides, drive number AFAIR can be passed verbatim in a filename and the drive itself handles it. As for the device number, I don't like the idea of putting it in the string/filename either. But I still agree that a method for selecting the device is needed.

-- 
SD!

----------------------------------------------------------------------
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 Aug 9 22:01:10 2012

This archive was generated by hypermail 2.1.8 : 2012-08-09 22:01:13 CEST