Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Functions with types
#1
Apparently, you can declare functions in TYPES. How do you implement the functions and call them?

I already tried function pointers.
.14159265358979323846264338327950288419716939937510582709445
Glarplesnarkleflibbertygibbertygarbethparkentalelelangathaffendoinkadonkeydingdonkaspamahedron.
Reply
#2
See the examples/funcptr.bas file. If you declare the pointer, you have to initializate it before dereferencing.

FB's reg allocator module is an example of fake-classes, but it may look a bit complex to follow: http://cvs.sourceforge.net/viewcvs.py/fb...iew=markup
Reply
#3
Quote:See the examples/funcptr.bas file. If you declare the pointer, you have to initializate it before dereferencing.

FB's reg allocator module is an example of fake-classes, but it may look a bit complex to follow: http://cvs.sourceforge.net/viewcvs.py/fb...iew=markup
:o :o :o :o :o

Can't wait!!
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)