unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Ariel Rios <ariel@gnu.org>
Cc: guile-user@gnu.org
Subject: Re: string-match error
Date: Wed, 15 Jan 2014 16:28:18 -0500	[thread overview]
Message-ID: <87r489rl3h.fsf@netris.org> (raw)
In-Reply-To: <CAE7AAt1djBhTPhUENopjgS-RBBbKBvsFRxmojL71+=0=9rOA1g@mail.gmail.com> (Ariel Rios's message of "Wed, 15 Jan 2014 14:33:10 -0600")

Ariel Rios <ariel@gnu.org> writes:

> Hello y'all,
>
> I am having problems using string-match. I have created a small script
> that calls string-match and I get:
>
> /home/ariel/console/mce/tests/./panda.scm:4:9: In procedure
> module-lookup: Unbound variable: string-match

As it says in the "Regular Expressions" section of the manual:

  "Before using the described functions, you should load this
   module by executing `(use-modules (ice-9 regex))'."

> If I start guile and then use string-match there is no problem:
> scheme@(guile-user)> (string-match "a" "a")
> $1 = #("a" (0 . 1))

It seems that the REPL starts with (ice-9 regex) loaded by default.

    Regards,
      Mark



      reply	other threads:[~2014-01-15 21:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-15 20:33 string-match error Ariel Rios
2014-01-15 21:28 ` Mark H Weaver [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r489rl3h.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=ariel@gnu.org \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).