guile-user
[Top][All Lists]
Advanced

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

Re: macro like "my" in Perl


From: Neil Jerram
Subject: Re: macro like "my" in Perl
Date: 16 Jul 2002 21:49:56 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>>>> "Paul" == Paul Jarc <address@hidden> writes:

    Paul> Neil Jerram <address@hidden> wrote:
    >> (error (format #f "Bad element ~S at ~A:~A:~A"
    >> (car elts)
    >> (source-property (car elts) 'filename)
    >> (source-property (car elts) 'line)
    >> (source-property (car elts) 'column)))

    Paul> Great, this works.  Although in my guile (1.5.6), this seems to be
    Paul> disabled by default, so I had to add (read-enable 'positions).

    guile> (list-no-pairs 1 (2 2) 3)
    >> standard input:25:20: In procedure error in expression (error (format #f 
"Bad element ~S at ~A:~A:~A" ...)):
    >> standard input:25:20: Bad element (2 2) at standard input:36:17
    >> ABORT: (misc-error)

    Paul> My error messages look like:
    Paul> ERROR: Bad element (2 2) at ./script:21:11

    Paul> How do you get the filename and positions at the beginning of the
    Paul> line?

Sorry, I don't understand.  What exactly do you want it to look like?

        Neil




reply via email to

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