caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Lukasz Lew <ll189417@zodiac.mimuw.edu.pl>
To: Remi Vanicat <vanicat@labri.u-bordeaux.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Hashtable, possible?
Date: Sun, 25 May 2003 15:40:47 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.44.0305251538270.22552-100000@zodiac.mimuw.edu.pl> (raw)
In-Reply-To: <87znlbq2b6.dlv@wanadoo.fr>




On Sun, 25 May 2003, Remi Vanicat wrote:

> 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.
thank you all.

So. If it is possibe, and there is such syntax for arrays, strings and 
bigarrays, so why there isn't any for hashtables?
I belive hashtables are more often used than bigarrays...

Lukasz Lew

-------------------
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 13:40 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
2003-05-25 13:40     ` Lukasz Lew [this message]
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=Pine.LNX.4.44.0305251538270.22552-100000@zodiac.mimuw.edu.pl \
    --to=ll189417@zodiac.mimuw.edu.pl \
    --cc=caml-list@inria.fr \
    --cc=vanicat@labri.u-bordeaux.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).