Re: [pure-lang-users] case
Status: Beta
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2008-08-28 00:45:17
|
Albert Graef wrote: >> case type of >> int = gsl_matrix_int_alloc r c, gsl_matrix_int_set; >> double = gsl_matrix_alloc r c, gsl_matrix_set; >> end; >> >> but it seems that case uses (==) instead of (===). BTW, the above won't work in Haskell or ML either... That poor little int function doesn't like it if you toss it around as if it was some piece of silly data! ;-) You could also just do a if type===int then ... else if type==double ..., of course. G'night, Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |