From: artboreb@netscape.net (Arturo Borquez)
To: garrigue@kurims.kyoto-u.ac.jp (Jacques Garrigue)
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] ocaml 3.07 and optional arguments
Date: Tue, 30 Sep 2003 15:18:13 -0400 [thread overview]
Message-ID: <24CC0396.359C27FF.00958B05@netscape.net> (raw)
Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp> wrote:
>> From: "Vincent Barichard" <Vincent.Barichard@info.univ-angers.fr>
>>
>> > I've just downloaded ocaml 3.07 and compil it. But when I try to compil old
>> > programs, I encounter some problems with optional arguments in methods.
>> [...]
>> > Is there any changes with the use of optional arguments for methods ?
>>
>> I don't remember introducing any change at that level.
>
>After another bug report, it seems that a parsing bug went into camlp4
>just before the release :-(
>
> Camlp4 Parsing version 3.07
>
># fun (f : ?x:int -> bool -> float) -> f true;;
>This expression has type bool but is here used with type ?x:int -> bool
># fun (f : ?x:int -> bool -> float) -> f;;
>- : ((?x:int -> bool) -> float) -> (?x:int -> bool) -> float = <fun>
>
>This is apparently a priority problem.
>A workaround is to explicitly add parentheses.
>
># fun (f : ?x:int -> (bool -> float)) -> f true;;
>- : (?x:int -> bool -> float) -> float = <fun>
>
>There is no fix for camlp4 itself yet.
>
> Jacques Garrigue
>
Hi,
Is there a patch planned soon to solve this issue?
Best regards
--
Arturo Borquez
__________________________________________________________________
McAfee VirusScan Online from the Netscape Network.
Comprehensive protection for your entire computer. Get your free trial today!
http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397
Get AOL Instant Messenger 5.1 free of charge. Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455
-------------------
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
next reply other threads:[~2003-09-30 19:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-30 19:18 Arturo Borquez [this message]
2003-10-01 0:04 ` Jacques Garrigue
2003-10-01 8:43 ` Christophe Raffalli
2003-10-01 15:45 ` Yaron Minsky
2003-10-01 15:54 ` Alain.Frisch
-- strict thread matches above, loose matches on Subject: below --
2003-10-01 20:28 Arturo Borquez
2003-10-01 23:51 ` Jacques Garrigue
2003-09-29 18:13 Vincent Barichard
2003-09-30 1:24 ` Jacques Garrigue
2003-09-30 3:07 ` Jacques Garrigue
2003-09-30 5:29 ` Vincent Barichard
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=24CC0396.359C27FF.00958B05@netscape.net \
--to=artboreb@netscape.net \
--cc=caml-list@inria.fr \
--cc=garrigue@kurims.kyoto-u.ac.jp \
/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