Just starting out? Need help? Post your questions and find answers here.
es_91
Enthusiast
Posts: 298 Joined: Thu Jan 27, 2011 12:00 pm
Location: DE
Post
by es_91 » Sat Apr 26, 2025 6:29 pm
Code: Select all
macro declareClass
declareModule
endMacro
macro endDeclareClass
endDeclareModule
endMacro
declareClass test
declare hello()
endDeclareClass
module test
procedure hello ()
debug 1
endProcedure
endModule
test::hello()
PB Compiler wrote: Line 18: Syntax error.
User_Russian
Addict
Posts: 1584 Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia
Post
by User_Russian » Sat Apr 26, 2025 8:28 pm
This is probably not a bug.
You are calling a macro inside the module declaration, but macro located outside the module.
Little John
Addict
Posts: 4802 Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany
Post
by Little John » Sat Apr 26, 2025 11:54 pm
User_Russian wrote: Sat Apr 26, 2025 8:28 pm
This is probably not a bug.
You are calling a macro inside the module declaration, but macro located outside the module.
Yep.
STARGÅTE
Addict
Posts: 2259 Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:
Post
by STARGÅTE » Sun Apr 27, 2025 12:10 am
Code: Select all
DeclareModule Class
Macro declareClass
DeclareModule
EndMacro
Macro endDeclareClass
EndDeclareModule
EndMacro
EndDeclareModule
Module Class
EndModule
Class::declareClass test
Declare hello()
Class::endDeclareClass
Module test
Procedure hello ()
Debug 1
EndProcedure
EndModule
test::hello()
es_91
Enthusiast
Posts: 298 Joined: Thu Jan 27, 2011 12:00 pm
Location: DE
Post
by es_91 » Sun Apr 27, 2025 12:27 am
Special thanks, STARGATE !!