[Top][All Lists]

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

Re: (net http)

From: tomas
Subject: Re: (net http)
Date: Fri, 17 Aug 2001 07:52:34 +0200
User-agent: Mutt/1.0.1i

On Sun, Aug 12, 2001 at 02:00:13PM +0200, address@hidden wrote:
> Hi,
> it's me *again*.
> After changing a couple of %'s into ~'s in goops.scm and stklos.scm, I get the
> following:
> | guile> (use-modules (net http))
> | /usr/local/share/guile/site/net/http/message.scm:70:1: \
> |       In expression (define-method (header-set! # name ...) (set! # #)):
> | /usr/local/share/guile/site/net/http/message.scm:70:1: \
> |       bad method name: (header-set! (msg <http-message>) name value)
> | ABORT: (goops-error)
> Seems there is a ``(define-generic header-set!)'' missing somewhere.

Duh. It's completely another thing. The syntax to `define-method' seems
to have changed subtly. (net http) has

  (define-method (post (client <http-client>) uri params) ... )

Changing into

  (define-method post ((client <http-client>) uri params) ... )

solves the problem. I don't know what the official syntax is these days.

Again, one possible solution would be ``go for the newest'' (see my
other post). Another would be to try to support the old syntax (maybe
with macros), while the transition 1.4 -> 1.6 takes place. Which way
to take depends, I think, on how long this transition is expected
to take (consider distributions being packed up now. How many Linux/*BSD/
you-name-it CDs have been pressed in the 1.5 seconds it took you to
read this? ;-)
If there is any interest, I would try to accomplish that (given some support
from the gurus, of course).

-- tomas

reply via email to

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