I'm coming to DarkBASIC from an extensive C++ Graphics Programming background, and was wondering:
Could I create a function inside a user defined type?
As an example:
Type pointOnCartesianPlane
x#
y#
distance As Function
EndType
The distance function would find the distance between one point and another. (I know this is bad class design, I'm simply bad at examples

).
If it is possible, what is the syntax for defining the function and parameters?
Cheers

!
I can program in C++ and SFML 2.0, JavaScript, HTML5 / CSS3, and DarkBASIC Professional! Fear Me

!