The Underscore
Posted: Thu Mar 13, 2014 9:51 am
:No flaming please:
In principle, the underscore is inherent in QL systems for file attributes
e.g.
You cannot DIR FLP1 you need FLP1_
As an indication filename_BAS, file_EXT, file_TASK, filename_OBJ provide a clue as to their file type
However
File extensions on the QL are cosmetic and provide no other useful function than a aesthetic one.
What I mean is, just because the file extension says _DOC doesn't mean the file is a QUILL formatted document, a text based document, a Microsoft WORD or Office style document. Nothing changes as far as the QL is concerned. Now you could say the same for other systems, a '.exe' file extension doesn't mean that the file is an executable machine code program, true!. Many people use the method of changing the file extension to trick the operating system in to doing something else with the file.
It does trigger (if registered with the operating system) certain things to happen, like allocation to a program or process if the file in question is clicked or double clicked. Even how you see the file being displayed in a file list can change if the extension is changed to that file.
So to my possibly naive question.
At the moment I am doing a lot of cross systems work between the QL emulations and Windows, the bugbear is the compatibility of the extension the _BAS _DOC _EXE etc., viewing the files and the number clicks you have to do in order to open up a file just to glance at the contents. Then I had a possible light bulb moment.
I presume the ROM(s) Minerva, JS HBA etc. (in electronic form obviously) have some form of definition table somewhere that says something along the lines of [treat this as a valid character for filename/folder separation "_" or CHR$(95) HEX 5F ]. So is it feasible to hack the ROM and replace the _ with . so that LOAD flp1.betterbasic.bas would be a valid syntax?
In principle, the underscore is inherent in QL systems for file attributes
e.g.
You cannot DIR FLP1 you need FLP1_
As an indication filename_BAS, file_EXT, file_TASK, filename_OBJ provide a clue as to their file type
However
File extensions on the QL are cosmetic and provide no other useful function than a aesthetic one.
What I mean is, just because the file extension says _DOC doesn't mean the file is a QUILL formatted document, a text based document, a Microsoft WORD or Office style document. Nothing changes as far as the QL is concerned. Now you could say the same for other systems, a '.exe' file extension doesn't mean that the file is an executable machine code program, true!. Many people use the method of changing the file extension to trick the operating system in to doing something else with the file.
It does trigger (if registered with the operating system) certain things to happen, like allocation to a program or process if the file in question is clicked or double clicked. Even how you see the file being displayed in a file list can change if the extension is changed to that file.
So to my possibly naive question.
At the moment I am doing a lot of cross systems work between the QL emulations and Windows, the bugbear is the compatibility of the extension the _BAS _DOC _EXE etc., viewing the files and the number clicks you have to do in order to open up a file just to glance at the contents. Then I had a possible light bulb moment.
I presume the ROM(s) Minerva, JS HBA etc. (in electronic form obviously) have some form of definition table somewhere that says something along the lines of [treat this as a valid character for filename/folder separation "_" or CHR$(95) HEX 5F ]. So is it feasible to hack the ROM and replace the _ with . so that LOAD flp1.betterbasic.bas would be a valid syntax?