Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Anton Moscal <msk@post.tepkom.ru>
To: Xavier Leroy <Xavier.Leroy@inria.fr>
Cc: caml-list@inria.fr
Subject: Re: Local definitions
Date: Wed, 14 Oct 1998 17:47:38 +0400 (MSD)	[thread overview]
Message-ID: <Pine.LNX.4.03.9810141738050.17452-100000@post.tepkom.ru> (raw)
In-Reply-To: <19981012133903.58898@pauillac.inria.fr>



On Mon, 12 Oct 1998, Xavier Leroy wrote:

> I've never found a convincing example of a type or exception
> declaration local to an expression.

I know only one useful example of the local exceptions. I include it
in my first letter. But it's enough important example (by my opinion):
This is structured goto from complex nested construction with returning
value.

Since exceptions can't be polymorphic, for each type of returned value we 
need specific exception. I don't know any other convenient way to do
this.

Regards, 
Anton E. Moscal





      parent reply	other threads:[~1998-10-15 14:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-21 16:30 polymorphic recursion Peter J Thiemann
1998-09-22  2:33 ` Jacques GARRIGUE
1998-09-22  9:22   ` Pierre Weis
1998-09-22 10:00     ` Simon Helsen
1998-09-22 15:06       ` Pierre Weis
1998-09-22 15:28         ` Simon Helsen
1998-09-22 16:33           ` Pierre Weis
1998-09-22 15:50         ` Pierre CREGUT - FT.BD/CNET/DTL/MSV
1998-09-22 17:14           ` Xavier Leroy
1998-09-28  9:51             ` Pierre Weis
1998-09-28 11:45               ` Peter Thiemann
1998-09-28 13:00                 ` Pierre Weis
1998-10-05 14:27               ` Local definitions Anton Moscal
1998-10-12 11:39                 ` Xavier Leroy
1998-10-12 17:20                   ` Adam P. Jenkins
1998-10-14 13:47                   ` Anton Moscal [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

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

  git send-email \
    --in-reply-to=Pine.LNX.4.03.9810141738050.17452-100000@post.tepkom.ru \
    --to=msk@post.tepkom.ru \
    --cc=Xavier.Leroy@inria.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