Code: Select all
TypeMacro bool
w
EndTypeMacro
Test.bool
Code: Select all
TypeMacro CLongLong
q
EndTypeMacro
Test.CLongLong
Code: Select all
TypeMacro AnyTerm
EndTypeMacro
*Test.AnyTerm
Code: Select all
TypeMacro bool
w
EndTypeMacro
Test.bool
Code: Select all
TypeMacro CLongLong
q
EndTypeMacro
Test.CLongLong
Code: Select all
TypeMacro AnyTerm
EndTypeMacro
*Test.AnyTerm
This can already be done with normal macros, no special "TypeMacro" needed.Josh wrote:In many cases a special typedeclaration could make code better understandable. For example:
Could also be useful for better checkable C-StructuresCode: Select all
TypeMacro bool w EndTypeMacro Test.bool
Code: Select all
TypeMacro CLongLong q EndTypeMacro Test.CLongLong
Code: Select all
Macro bool
i
EndMacro
Macro CLongLong
q
EndMacro
a.bool
b.CLongLong
Yes, thats clear. But when I fill my project with a lot of standard macros, i will get much trouble and this case of problems are hard to find. I always try to use unique identifier, but its not reasonable in each case.Little John wrote: Could also be useful for better checkable C-Structures
No, I didn't write that.Josh wrote:Little John wrote: Could also be useful for better checkable C-Structures
This can already be done with normal macros, no special "TypeMacro" needed.
Sorry, I don't understand what the problem is with just using normal macros that are already available in PB.Josh wrote:Yes, thats clear. But when I fill my project with a lot of standard macros, i will get much trouble and this case of problems are hard to find. I always try to use unique identifier, but its not reasonable in each case.
That's true. And the only purpose of that seems to be re-introducing obsolete syntax that has been abandoned.Josh wrote:BTW: Changing to nothing is not possible with standard macros
Ups, sorry. I shorted the quotation wrong.Little John wrote:No, I didn't write that.Josh wrote:Little John wrote: Could also be useful for better checkable C-Structures
I wrote:This can already be done with normal macros, no special "TypeMacro" needed.
I see in your first post, that you don't understand. I want to give short and clear additional informations about the needed parameters shown in the statusbar quickhelp.Little John wrote:Sorry, I don't understand what the problem is with just using normal macros that are already available in PB. Giving unique names to identifiers is possible now, without such a "TypeMacro".
Code: Select all
Procedure Test (Param1.ui, Param2.bool, Param3.color)
Code: Select all
Procedure Test (Param1.AUniqueType_ui, Param2.AUniqueType_bool, Param3.AUniqueType_color)
Josh wrote:I see in your first post, that you don't understand.Little John wrote:Sorry, I don't understand what the problem is with just using normal macros that are already available in PB. Giving unique names to identifiers is possible now, without such a "TypeMacro".
Yes, this works fine here (with PB 5.31) with normal macros, like the examples that I wrote in my first post.Josh wrote:I want to give short and clear additional informations about the needed parameters shown in the statusbar quickhelp.