Re: Userdefined datatypes
- Posted by ZNorQ Mar 07, 2015
- 1433 views
DerekParnell said...
ZNorQ said...
I've created an own data-type called "byte";
It's probably just a style thing, but the way I code these is more along the lines of ...
type byte( object nByte ) if not integer( nByte ) then return 0 end if if nByte < 0 then return 0 end if if nByte > 255 then return 0 end if return 1 end type
Would it be because of readibility, execution efficiency - or something else?
Regards Kenneth/ZNorQ