Re: Can types be global

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

Juergen Luethje wrote:
> 

> Of course can types be global.
> A user-defined type is just a single-parameter function that returns
> TRUE or FALSE.
> Look e.g. here <<a
> href="http://www.rapideuphoria.com/type.zip">http://www.rapideuphoria.com/type.zip</a>>
> for a file that
> contains a collection of useful global types. Works fine. smile

I downloaded your type.e

global type upper_char (object x) --I was told that if statements took more
---time.
   if integer(x) then
      if x <= 'Z' then
         return x >= 'A'
      else
         return find(x, "ÄÖÜ") != 0
      end if
   end if
   return 0
end type


Are you really sure that you did include the right file? Yes, have other procedures and functions in there that work.

Regards,
Juergen

Don Cole }}}

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

Search



Quick Links

User menu

Not signed in.

Misc Menu