Browse thread
Why + vs +. but "fake" parametric polymorphism for <
-
Carlos Pita
-
Carlos Pita
- Basile STARYNKEVITCH
-
Jonathan Roewen
- Carlos Pita
-
Carlos Pita
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Carlos Pita <cpitadev@y...> |
| Subject: | Re: [Caml-list] Why + vs +. but "fake" parametric polymorphism for < |
> > Pretty expensive for a simple int comparison I would say. > > It is not an int comparison! Ok, I meant it would put much of a burden on performance in case max was called with mere unboxed int arguments. > Try: > > let int_max a b : int = if a > b then a else b Great! It's crystal clear now. Thank you all! __________________________________________________ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo que ni imaginabas, está en Yahoo! Respuestas (Beta). ¡Probalo ya! http://www.yahoo.com.ar/respuestas