[e-lang] simple question

Mark Miller erights at gmail.com
Tue Aug 15 18:18:22 EDT 2006


On 8/15/06, Matej Kosik <kosik at fiit.stuba.sk> wrote:
> I have tried to "install" the capEdit.capplet but it failed
> with the following message:
>
>     starting run prep
>     made scope 2
>
>     # value: <capEditCapletAuthor>
>     shown
>     about to get requestsTree
>     got requestsTree
>     requests retrieval failed: problem: Prefix doesn't match: visit
> )

Hi Matej, what version of E are you using?


> E programs cannot be run in safeMode without CapDesk? For example:
> running a E program and giving it (at startup) capability to some
> object...which, for example, enables it to write 10 lines to some file.
> Or something similar. (just a proposal)

If you have a file foo.emaker, it can be run directly from rune,
either by saying

    $ rune foo.emaker

or by putting

    #!/usr/bin/env rune

in the first line of the file, making the file executable, and saying

    $ foo.emaker

However, since the file is thereby denied the authority to affect
anything outside itself, this isn't useful.

In the current svn head, you can also enter expressions interactively
into the safe scope:

    $ rune --interact -.emaker
    ? 2+3
    # value: 5

    ? <file>
    # problem: Failed: Undefined variable: file__uriGetter

For more on using rune to run *.emaker files, do

    $ rune --help -.emaker

and likewise for other extensions that rune knows how to launch, which
are currently

    -.e, -.e-awt, -.swt, -.emaker, -.caplet, -.updoc

-- 
Text by me above is hereby placed in the public domain

    Cheers,
    --MarkM


More information about the e-lang mailing list