Date : Sun, 26 Nov 2006 21:47:12 +0000
From : thomasharte@... (Thomas Harte)
Subject: Standard file extension for BASIC 2 style code?
> Yes. As I said, ".bas", and quoted the Wiki entry pointing out
> that you shouldn't forbid users to not use ".bas" and shouldn't
> assume a file's format in input purely on it's name or type.
Aaahh, my mistake. I'd missed your message entirely, which is why my reply
is purely to the reply to yours. I've made .bas the default for my emulator
but in theory it'll take anything and only complain if it hits some sort
of error parsing the contents. I've just uploaded a prerelease for people
on the mailing list, so I'm sure I'll get either no feedback whatsoever or
the news that my BASIC parser is all messed up.
Something that might be of interest to others in the group who otherwise
aren't interested in the Electron is that the emulator can do the same automatic
loading on BASIC files that it can do on discs, tapes, etc. Which really
just means that if you have that feature enabled then when you load a BASIC
source file the machine is hard reset, the BASIC is squirted into RAM and
then a RUN command is issued. That's interesting because it means you could
set up the emulator as the default handler for .bas files, and from then
on launch your BASIC code just by double clicking on it in Explorer or the
Finder.
To be honest, I've been a bit lazy with line endings. When reading, I'm
just ignoring all carriage returns and starting a new line on every linefeed.
When writing files, I'm leaving it up to the OS (i.e. output opened in text
mode, writing the newline character).
Anyway, just to apologise for missing your post. I'll add notes on ElectrEm's
attitude to BASIC code to the wiki once I've made a proper release.
Lycos email has 300 Megabytes of free storage... Get it now@...