diff samples/hash.tp @ 336:2a0463c46913

Add hash method to float types and make hash always return a 32-bit int
author Michael Pavone <pavone@retrodev.com>
date Fri, 03 Apr 2015 23:07:06 -0700
parents 7f635666c73d
children
line wrap: on
line diff
--- a/samples/hash.tp	Mon Mar 30 19:12:51 2015 -0700
+++ b/samples/hash.tp	Fri Apr 03 23:07:06 2015 -0700
@@ -6,5 +6,8 @@
 		print: "hash of 1 is " . (1 hash) . "\n"
 		print: "hash of 2 is " . (2 hash) . "\n"
 		print: "hash of 3 is " . (3 hash) . "\n"
+		print: "hash of 1u32 is " . (1u32 hash) . "\n"
+		print: "hash of 2.0 is " . (2.0 hash) . "\n"
+		print: "hash of 3f32 is " . (3.0f32 hash) . "\n"
 	}
 }