Stack with UIU/AIDS problem

Laiev

Hey Listen!!
Reaction score
188
I tested somethings and I get some syntex error when I try to test Stack with AIDS. Just return "Undeclared function s__Stack__allocate" but when I save with UIU, its compile :confused::confused:
 

Laiev

Hey Listen!!
Reaction score
188
hmm... oh ya :p sorry about that

Don't compile:
JASS:
library test requires Stack, AIDS
    struct data
        private Stack s = Stack.create()
    endstruct
endlibrary


Compile:
JASS:
library test requires Stack, UnitIndexingUtils
    struct data
        private Stack s = Stack.create()
    endstruct
endlibrary


and yes, this is just a test and I need to use the AIDS :p

EDIT: OT: oh lol you're the tobias o_o'
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Hmm... It does that for me too, but this works:
JASS:
library StacknAIDS requires Stack, AIDS

    private struct data
        private Stack s
        
        static method create takes nothing returns thistype
            local thistype this = thistype.allocate()
            
            set s = Stack.create()
            
            return this
        endmethod
        
    endstruct
    
endlibrary


So maybe that's an alternative ? :eek:

OT: Yepp, that's me ;)
 

Laiev

Hey Listen!!
Reaction score
188
"undeclared variable this" lol

I hate when I get this syntax error -.-


EDIT: now works :p

I just forget to prefix the [ljass]set s = Stack.create()[/ljass] since my create method don't use this and yes an other name :p

thx, fixed :thup: rep'ed
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top