Re: Types and Optimizing
- Posted by Hawke <mdeland at NWINFO.NET> Sep 10, 1998
- 528 views
David Cuny wrote: >Yes, you could replace all the type declarations in your code with >'object',and the code would run as "correctly" as it did with types - >but not >as fast, since Euphoria relies on the types to optimize the >code it generates. so... if i did the following: type byte(object x) return x>=0 and x<=255 end type would euphoria then make the declaration: byte LittleNumber into an honest to goodness 'byte' and LittleNumber would then only consume *one byte* ???? if so, that wasn't the understanding i originally got from reading refman.doc, and i gotta whole lotta optimizing to do now :)