| 11-13-2007, 09:33 PM | #1 |
Private functions can access other private functions in a scope/library, but it can't do the same with structs, like in here: JASS:library C struct a b other method blah takes nothing returns nothing set this.other = b.create() endmethod endstruct private struct b endstruct endlibrary It gives me the syntax error "b is not a type that allows . syntax.". Is this supposed to be like this or is this a bug? Is there a way around it? |
| 11-14-2007, 01:24 AM | #2 |
Might "b" need to be above "a"? I don't know if that is required in vJASS. |
| 11-14-2007, 01:30 AM | #3 | |
Quote:
|
| 11-14-2007, 02:01 AM | #4 |
its a... "bug" ?... things declared as private must be declared before they are used. |
| 11-14-2007, 02:33 AM | #5 |
JASS:library C private keyword b struct a b other method blah takes nothing returns nothing set this.other = b.create() endmethod endstruct private struct b endstruct endlibrary |
| 11-14-2007, 06:25 AM | #6 |
So that's what keywords are for? |
| 11-14-2007, 11:12 AM | #7 |
Never knew that even existed. It's not in the manual.... Well, we all learned something. |
| 11-14-2007, 12:41 PM | #8 | |
Quote:
|
| 11-15-2007, 06:52 AM | #9 |
I swear that's not in the manual here: http://www.wc3campaigns.net/vexorian...permanual.html |
| 11-15-2007, 12:26 PM | #10 |
Perhaps the old version number is at fault? Your sig is too big. |
| 11-15-2007, 11:41 PM | #11 |
Well where's the link to the online manual for the newest JASSHelper, then. Fix'd the sig. |
