caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: John Li <jli@circularly.org>
To: Cedric Auger <Cedric.Auger@lri.fr>
Cc: Joel Christner <joel.christner@gmail.com>, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Newbie list question
Date: Wed, 13 May 2009 16:24:28 -0400	[thread overview]
Message-ID: <20090513202428.GA9968@circularly.org> (raw)
In-Reply-To: <4A0B0C2A.6010303@lri.fr>

On Wed, May 13, 2009 at 08:06:34PM +0200, Cedric Auger wrote:
> Joel Christner a écrit :
>>
>> Then throughout the course of program operation, I will be adding data
>> into this list, i.e.:
>> # varlist.contents <- a::varlist.contents;;
>> # varlist.contents <- b::varlist.contents;;
>> # varlist.contents <- c::varlist.contents;;
> I don't know if you know it, but there exist a notation: "!varlist" as  
> syntactic sugar for "varlist.contents"

Yes, but of course.

# !varlist <- a :: !varlist

won't work. There's more sugar for that:

# varlist := a :: !varlist

is equivalent to the 3 lines you originally had.


-John


  reply	other threads:[~2009-05-13 20:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-13 17:24 Joel Christner
2009-05-13 18:06 ` [Caml-list] " Cedric Auger
2009-05-13 20:24   ` John Li [this message]
2009-05-15 13:49 ` Florian Hars

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=20090513202428.GA9968@circularly.org \
    --to=jli@circularly.org \
    --cc=Cedric.Auger@lri.fr \
    --cc=caml-list@yquem.inria.fr \
    --cc=joel.christner@gmail.com \
    /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).