Re: Can types be global

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

don cole wrote:

> This works (in the same file).
> 
> type caps(integer x)
>   return x >= 'A' and x<= 'Z'
> end type
> 
> This doesn't in an incude file.
> 
> global type caps(integer x)
>   return x >= 'A' and x<= 'Z'
> end type
> 
> Why whats wrong?
> 
> Don Cole

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 <http://www.rapideuphoria.com/type.zip> for a file that
contains a collection of useful global types. Works fine. smile

Are you really sure that you did include the right file?

Regards,
   Juergen

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

Search



Quick Links

User menu

Not signed in.

Misc Menu