typedef

BlitzMax Forums/BlitzMax Programming/typedef

kfprimm(Posted 2006) [#1]
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?


Jim Teeuwen(Posted 2006) [#2]
The closest thing to that would be to use inheritance I think.

Type A
...
End Type

Type B Extends A
...
End Type


Cajun17(Posted 2006) [#3]
No there's nothing like typedef in Max.


Defoc8(Posted 2006) [#4]
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..


FlameDuck(Posted 2006) [#5]
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.