Version française
Home     About     Download     Resources     Contact us    
Browse thread
Why + vs +. but "fake" parametric polymorphism for <
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ 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