Re: Computer Science Logo Style: An Object Oriented Framework for Logo
- From: bh@xxxxxxxxxxxxxxx (Brian Harvey)
- Date: Sat, 24 May 2008 07:36:31 +0000 (UTC)
danielwb@xxxxxxxxxxxxx writes:
That would make it better than it is now. But what I really want is
to be able to is open it up in the Editor. Currently there isn't any
easy way to delete or edit properties or methods. To edit methods you
basically have to reenter the command again that will replace it. You
can't delete properties or methods at all. It is an easy fix though,
I could easily implement the procedure to delete a property or
method.
The EDITFILE command takes a filename as input, edits that file, and then
loads it into Logo. I thought you could put a DefineClass in the file,
followed by the lines that DefineClass would read, until I tried the
experiment just now. Turns out that UCBLogo remembers the input stream it's
currently loading from separately from the current READER stream!
Is this a bug? I think the motivation is that if you've done a SETREAD, and
then you do a LOAD, that shouldn't change the READER stream for reading you
do after the load. But LOAD could push and pop READER, and set it to be
the same as the loadstream temporarily. Then reads (READLIST or READWORD,
etc.) within the loaded file would read from the file (unless you did an
explicit SETREAD within the loaded file).
Does anything depend on the current behavior? That is, does anyone load
files that have to read from the keyboard during the loading?
.
- Follow-Ups:
- References:
- Computer Science Logo Style: An Object Oriented Framework for Logo
- From: danielwb
- Re: Computer Science Logo Style: An Object Oriented Framework for Logo
- From: danielwb
- Re: Computer Science Logo Style: An Object Oriented Framework for Logo
- From: Brian Harvey
- Re: Computer Science Logo Style: An Object Oriented Framework for Logo
- From: danielwb
- Computer Science Logo Style: An Object Oriented Framework for Logo
- Prev by Date: Re: Computer Science Logo Style: An Object Oriented Framework for Logo
- Next by Date: question about implementing infinitely-repeated instructions in a Logo implementation
- Previous by thread: Re: Computer Science Logo Style: An Object Oriented Framework for Logo
- Next by thread: Re: Computer Science Logo Style: An Object Oriented Framework for Logo
- Index(es):
Relevant Pages
|