Re: A86: directories
[Prev][Next][Index][Thread]
Re: A86: directories
It'd be easier not to do it like a tree. All directories are on the same
level as each other. You type "dir" (not suggesting implementation, just
an example), and it shows all directories, except the one you're in.
Think of directories like ZIP files. The directory stores it's file list
(VAT) and the files in it. Like a zip file has a header followed by the
files in it. These would be the new type. When you change directories,
the current vat, except dir types, is "zipped up" into a dir variable.
Then the one you change to is "unzippped" into the VAT and is deleted. The
other directory types remain unaffected.
(If you really want to do it and want more info, email me privately)
At 09:39 PM 5/17/98 -0400, you wrote:
>
>Hmm. That's not a bad idea. So like a program name points to a program, the
>directory name would point to the VAT to be swapped.. The only problem would
>be what to do with the original VAT, you'd have to put it in a variable
>somewhere.
>
>
>David Phillips wrote:
>
>> What about this: create a program to manage the directories. When you
>> change directories, it swaps the VAT of the current directory with the new
>> VAT that it has stored somewhere. You'd have to create dummy vars to take
>> up space so the TI-OS doesn't overwrite your other variables. Maybe
>> directories could be stored as a special type that would contain it's VAT
>> and all the vars in it. That way, you wouldn't have to worry about the OS
>> "defragmenting" its memory--the directories would move with it. Then you
>> could use any program without any trouble. Maybe the directories could be
>> stored in a compressed format, and uncompressed when "changed" to...
>>
>> At 08:58 PM 5/16/98 -0400, you wrote:
>> >
>> >If it's really possible to create new variable types, what do you folks
>> >think about creating a directory variable type, that can be accessed
>> >with a token called "cd". "cd games", when typed to the home screen,
>> >would switch to the games directory.. The unused byte in the VAT can be
>> >used to place each variable in a directory.
>> >It would be pretty neat -- you could have directories that require root
>> >access, or directories that have disabled sqrt programs..
>> >Does that ring like worthy idea?
>> >
>> >
>>
>> // David Phillips
>> // mailto:electrum@tfs.net
>> // AIM: electrum32
>
>
>
>
// David Phillips
// mailto:electrum@tfs.net
// AIM: electrum32
References: