guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add ',run' and ',!'


From: Nala Ginrut
Subject: Re: [PATCH] Add ',run' and ',!'
Date: Fri, 12 Apr 2013 17:37:11 +0800

On Fri, 2013-04-12 at 15:50 +0800, Daniel Hartwig wrote:
> On 12 April 2013 14:29, Nala Ginrut <address@hidden> wrote:
> > On Fri, 2013-04-12 at 07:55 +0800, Daniel Hartwig wrote:
> >> On 11 April 2013 13:37, Ian Price <address@hidden> wrote:
> >> >
> >> >> So, what do you think?
> >> >
> >> > This is the sort of thing that belongs in a .guile rather than in
> >> > guile IMO.
> >> >
> >>
> >> Right, and since you can already do this with more control via the
> >> posix interface, adding this 'shortcut' to the repl adds little in the
> >> way of value.
> >>
> >
> > I think it's worthy making our REPL-command module more extensible, and
> > we may add customized REPL command.
> 
> That is what ‘define-meta-command’ is for, though be sure to specify a
> category (here ‘wigs’):
> 
> scheme@(guile-user)> (use-modules (system repl command))
> scheme@(guile-user)> (define-meta-command ((foo wigs) repl . args)
>                        "does a lot"
>                        (display "foo")
>                        (newline))
> scheme@(guile-user)> ,foo
> foo
> 

Ah~very nice~
So many cool things should be documented...






reply via email to

[Prev in Thread] Current Thread [Next in Thread]