Search This Blog

Tuesday, September 14, 2010

SML How to check variable type?

Programmer Question

Is there any way to check/test the type of a variable?



I want to use it like this:



if x = int then foo
else if x = real then bar
else if x = string then ...
else .....


Find the answer here

No comments:

Post a Comment

Related Posts with Thumbnails