From: philip.armitage on
On Feb 18, 8:14 pm, Pascal Bourguignon <p...(a)informatimago.com> wrote:

> clisp 2.41 barfs as it should:
>
> C/USER[131]> (defun f ((x y) z) (list x y z))
>
> *** - FUNCTION: (X Y) is not a symbol
> The following restarts are available:
> USE-VALUE :R1 You may input a value to be used instead.
> ABORT :R2 ABORT
> C/Break 1 USER[132]> :q
> C/USER[133]>
>
> What version do you use?

2.39


From: Sam Steingold on
> * Timofei Shatrov <tehr(a)znvy.eh> [2007-02-18 18:43:45 +0000]:
>
> On 18 Feb 2007 09:43:09 -0800, philip.armitage(a)gmail.com tried to confuse
> everyone with this message:
>
>>ABLE is A Basic Lisp Editor released as Free software and built on the
>>excellent LTk library.
>>
>>You can download a very early 0.1 release from:
>>
>>http://phil.nullable.eu/
>>
>
> Does it even work? I see some strange code such as...
>
> (defun add-tag ((txt text) name start end)
> (format-wish "~a tag add ~a ~a ~a" (widget-path txt) name start end))
>
> I don't think any CL implementation can consume it :)

CLISP will, if CUSTOM:*DEFUN-ACCEPT-SPECIALIZED-LAMBDA-LIST* is non-NIL
http://clisp.cons.org/impnotes/flow-dict.html#defun-accept-spelalist

Variable CUSTOM:*DEFUN-ACCEPT-SPECIALIZED-LAMBDA-LIST*. When
CUSTOM:*DEFUN-ACCEPT-SPECIALIZED-LAMBDA-LIST* is non-NIL, DEFUN accepts
specialized lambda lists, converting type-parameter associations to type
declarations:

(defun f ((x list) (y integer)) ...)

is equivalent to

(defun f (x y) (declare (type list x) (type integer y)) ...)

This extension is disabled by -ansi and by setting CUSTOM:*ANSI* to T,
but can be re-enabled by setting
CUSTOM:*DEFUN-ACCEPT-SPECIALIZED-LAMBDA-LIST* explicitly.

--
Sam Steingold (http://sds.podval.org/) on Fedora Core release 6 (Zod)
http://israelunderattack.slide.com http://mideasttruth.com http://dhimmi.com
http://ffii.org http://thereligionofpeace.com http://truepeace.org
(let((a'(list'let(list(list'a(list'quote a)))a)))`(let((a(quote ,a))),a))
From: philip.armitage on
On Feb 18, 11:12 pm, Sam Steingold <s...(a)gnu.org> wrote:
> > * Timofei Shatrov <t...(a)znvy.eh> [2007-02-18 18:43:45 +0000]:

> > I don't think any CL implementation can consume it :)

> CLISP will, if CUSTOM:*DEFUN-ACCEPT-SPECIALIZED-LAMBDA-LIST* is non-NILhttp://clisp.cons.org/impnotes/flow-dict.html#defun-accept-spelalist

Thanks. I've uploaded ABLE 0.1.1 to fix this problem (I think I caught
them all) and compiled a shiny new clisp 2.41 on my machine to work
with from now on.

Phil

From: philip.armitage on
On 18 Feb, 17:43, philip.armit...(a)gmail.com wrote:
> ABLE is A Basic Lisp Editor released as Free software and built on the
> excellent LTk library.

Someone asked me if ABLE could be used on a Windows PC. I'd never
tried but I thought I'd give it a go on a PC in the office:

- download Tcl/Tk from ActiveState
- write a 2 line batch file (cd "C:\path\to\able" \n "C:\path\to
\clisp.exe" -i "start.lisp")
- double click the batch file...works first time

Back in my C++ days I'd be trying to work out which combination of
compiler switches generated the least errors - hurrah for Lisp (and
CLisp, Tcl/Tk and LTk).

Phil