typedef

BlitzMax Forums/BlitzMax Programming/typedef

Is there a BlitzMax equalivent for types? I know you can rename a function by creating a varible and assigning it a function but is there a way to do it with a type?

The closest thing to that would be to use inheritance I think.

Type A
...
End Type

Type B Extends A
...
End Type

No there's nothing like typedef in Max.

If you can find an editor with macro support - you can
achieve the same effect - basically your real type would be
inserted were you place the macro..the macro would be
expanded at compile time...though i have no idea if any
none official bmax editors support simple macros..

I know you can rename a function by creating a varible and assigning it a function but is there a way to do it with a type?
No. Types are typesafe, function pointers aren't.