[plt-scheme] MrEd - Read Only Editor?
On Tue, Mar 11, 2008 at 10:26 PM, Ben Simon <benjisimon at gmail.com> wrote:
>
> On Tue, Mar 11, 2008 at 11:21 PM, Ryan Culpepper <ryanc at ccs.neu.edu> wrote:
>
> >
> >
> > Ben Simon wrote:
> > > Hey All,
> > >
> > > Any suggestions how I can create a read only editor? That is, an editor
> that
> > > my code can append/insert into, but that users can't?
> > >
> >
> > > Thoughts? Or do I need to be creating a big 'ol multi line message%?
> >
> > When the editor is locked (see the 'lock' method), all modifications
> > silently fail. So users can type in the editor and nothing happens.
>
>
> Interesting. Is it considered acceptable style leverage this fact and write
> code that depends on this?
Yes. Why wouldn't it be?
Robby