Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
8435bc2a
Commit
8435bc2a
authored
Jul 10, 2007
by
Pietro Abate
Browse files
[r2003-05-24 20:35:15 by cvscast] Manual
Original author: cvscast Date: 2003-05-24 20:35:15+00:00
parent
9dd74910
Changes
2
Hide whitespace changes
Inline
Side-by-side
driver/cduce.ml
View file @
8435bc2a
...
...
@@ -66,7 +66,7 @@ let rec print_exn ppf = function
|
Typer
.
Constraint
(
s
,
t
,
msg
)
->
Format
.
fprintf
ppf
"This expression should have type:@
\n
%a@
\n
"
print_norm
t
;
Format
.
fprintf
ppf
"but its infered type is:@
\n
%a@
\n
"
Format
.
fprintf
ppf
"but its infer
r
ed type is:@
\n
%a@
\n
"
print_norm
s
;
Format
.
fprintf
ppf
"which is not a subtype, as shown by the sample:@
\n
"
;
Location
.
protect
ppf
...
...
web/manual/expressions.xml
View file @
8435bc2a
...
...
@@ -123,13 +123,13 @@ an alternative notation, which is lighter for several argument
</p>
<sample>
<![CDATA[
fun %%f%% (%%
x
1%% : %%t1%%, %%...%%, %%
x
n:tn%%) : %%s%% = %%e%%
fun %%f%% (%%
p
1%% : %%t1%%, %%...%%, %%
p
n:tn%%) : %%s%% = %%e%%
]]>
</sample>
<p>
which is strictly equivalent to:
</p>
<sample>
<![CDATA[
fun %%f%% ((%%t1%%,%%...%%,%%tn%%) ->
%%s%%) (%%
x
1%%,%%...%%,%%
x
n%%) -> %%e%%
fun %%f%% ((%%t1%%,%%...%%,%%tn%%) ->
%%s%%) (%%
p
1%%,%%...%%,%%
p
n%%) -> %%e%%
]]>
</sample>
<p>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment