Re: Types and Optimizing

new topic     » topic index » view thread      » older message » newer message

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 :)

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu