-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|465|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Misc


 
Pixel_Outlaw
Created : 18 June 2025
Edited : 18 June 2025

[BMAX] - Generics, Function References, Boxing, Type Extension



You will need BlitzMax NG for this.

This shows how to extend a Type in Blitzmax and add additional interfaces using function references.
I would have papered over the superclass' methods but BlitzMax wasn't having the method signature change...

It also shows off how to use class generics.
Finally, I turn what would be 2 for loops into a single chained command using the new more functional interfaces.

I've been sick and tired trying to hunt down some of these features on the missing documentation so I've done so here in 1 example.



 

Comments