caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Remi Vanicat <vanicat@labri.u-bordeaux.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Hashtable, possible?
Date: Sun, 25 May 2003 02:48:13 +0200	[thread overview]
Message-ID: <87znlbq2b6.dlv@wanadoo.fr> (raw)
In-Reply-To: <873cj3rhjb.dlv@wanadoo.fr> (Remi Vanicat's message of "Sun, 25 May 2003 02:34:00 +0200")

Remi Vanicat <vanicat@labri.u-bordeaux.fr> writes:

> Lukasz Lew <ll189417@zodiac.mimuw.edu.pl> writes:
>
>> Hi.
>> Is it possible to implement with camlp4, syntax for using hashtables like 
>> arrays?
>> I think about something like this:
>>
>> # let a = [{ }];;
>> val a : ('_a, '_b) Hashtbl.t = <abstr>
>>
>> # a.{"foo"} <- 'f';;
>> - : unit = ()
>>
>> I need only "yes" or "no" :)
>
> yes it is

well, you should use something else than [{ }] and a.{ ... } because
they already have a meaning, but if you find something then yes you
can.


-- 
Rémi Vanicat
vanicat@labri.u-bordeaux.fr
http://dept-info.labri.u-bordeaux.fr/~vanicat

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


  reply	other threads:[~2003-05-25  0:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-24 19:52 Lukasz Lew
2003-05-25  0:34 ` Remi Vanicat
2003-05-25  0:48   ` Remi Vanicat [this message]
2003-05-25 13:40     ` Lukasz Lew
2003-05-25 13:50       ` Eray Ozkural
2003-05-26  1:15       ` Jacques Garrigue

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

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

  git send-email \
    --in-reply-to=87znlbq2b6.dlv@wanadoo.fr \
    --to=vanicat@labri.u-bordeaux.fr \
    --cc=caml-list@inria.fr \
    /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 NNTP newsgroup(s).