guile-user
[Top][All Lists]
Advanced

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

Re: Determining programatically whether the interpreter is Guile or Clis


From: Nala Ginrut
Subject: Re: Determining programatically whether the interpreter is Guile or Clisp or Emcs
Date: Wed, 31 Jul 2013 13:35:19 +0800

On Wed, 2013-07-31 at 08:47 +0400, 白い熊 wrote:
> Nala Ginrut <address@hidden> wrote:
> >Here's a dilemma, unless guile/clisp/emacs have the same
> >checker-procedure with same name and definition, you have no promise to
> >check it under different language environment. The best way is
> >prepossess which is portable.
> Yes, I have been thinking very hard about this. The closest I came is 
> apropos. 
> 
> At least (apropos "guile") gives empty feedback in clisp and (apropos 
> "clisp-data") is empty in guile and so on... So I could differentiate based 
> on this. 
> 
> However there's no numeric output so I can't do a cond based on (= ... 
> comparison of output as= is the only equality function the three share so it 
> seems back to square one.... So close.... 

you may try:
(with-output-to-string (lambda () (apropos "guile")))
you're so lucky than "with-output-to-string" appears in clisp, but I'm
not familiar with elisp




reply via email to

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