Author Topic: Functions in Types?  (Read 20552 times)

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10726
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Functions in Types?
« Reply #75 on: 2010-Jun-04 »
Oh dear!! The function body is generated in another file (the global definition file), whereas the first inline block goes in the 1st file cpp.
In this case, you can either work with IMPORT or with a function wrapper.

Offline hardyx

  • Community Developer
  • Dr. Type
  • ******
  • Posts: 496
    • View Profile
Re: Functions in Types?
« Reply #76 on: 2010-Jun-16 »
Thanks Gernot, functions in types is the best update for me. This way you can organize the code better and keep all the functions that treat a type in a place. Developers can use this or not, but If you think in objects or types is very useful.

MrTAToad

  • Guest
Re: Functions in Types?
« Reply #77 on: 2010-Jun-16 »
Indeed - they are useful.  All that is needed now is the ability (like normal types) to define one extended type  and use it in another - its needed so that they dont all have to be put in one file.