From: Stefan v. d. W. <st...@su...> - 2004-09-08 11:26:31
|
Comparing the double_value and int_value works, although there is bound to be a more elegant way. There seems to be a movement away from the is_xxx_type() functions. People use: type x = args(0).type_value(); if (error_state) { error("not happy"); return retval; } Regards Stefan On Wed, Sep 08, 2004 at 12:25:37PM +0200, Michael Creel wrote: > I can't see an easy way to check if an input argument to a DLD function is an > integer. > > I can check for a real scalar using foo.is_real_scalar(), > > What's the analogous way to check if it's an integer? > > I hope this is a stupid question! > > Michael |