HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Tutorial request thread?

10-12-2008, 03:19 PM#1
Vexorian
I say, let people vote on what they think should be my next tutorial about, starting now.

Well, I could make a tutorial of plenty of things even of things I don't really know so well, but it would be better to limit it to vJass stuff. k?
10-12-2008, 03:48 PM#2
Captain Griffen
Delegation.

Cuz you know no one will use it even if you make a tutorial. 'cept grim.
10-12-2008, 03:51 PM#3
TotallyAwesome
Hmm, one of risks of having this thread open are "omg plz lrn me 2 jass kk" posts. I guess it's helpful though.
10-12-2008, 04:05 PM#4
Vexorian
Quote:
Originally Posted by Captain Griffen
Delegation.

Cuz you know no one will use it even if you make a tutorial. 'cept grim.
I am using it.
10-12-2008, 04:29 PM#5
moyack
How to date successfully with a woman...
Quote:
but it would be better to limit it to vJass stuff. k?
Damn!!! ok.... well I think a good tutorial (or reference guide) could be about how all this vJASS gets converted when they're compiled. I've noticed there's too much ignorance in that part and it will help people to apply the vJASS features properly, even to abuse them properly.
10-12-2008, 05:38 PM#6
DioD
All realy needed tutorial already exist[citation needed].

There is no need "who to edit tga in hex"
10-12-2008, 05:40 PM#7
grim001
Quote:
Originally Posted by Captain Griffen
Delegation.

Delegate rocks.
10-13-2008, 10:09 AM#8
MaD[Lion]
delegation is awesome, and there no need to be tutorial for it. Go read the manual, vex actually made a better delegation than delegation in java/C#/C++ etc Because his compiler is uber smart :P

But there is something i wanna ask about:
-Does delegation also allow delegate of variables? It would be awesome if it can access variables tat doesnt exist for the current struct but exist in the delegated structs in it.
10-13-2008, 12:49 PM#9
Vexorian
what variables?
10-13-2008, 09:47 PM#10
MaD[Lion]
member variables of the struct. Delegation works on method, i wonder if it works on member vars too...

ex:
Collapse JASS:
struct A
    integer G
endstruct

struct B
    delegate A deleg
    static method create takes nothing returns B
        local B b = B.allocate()
        set B.deleg = A.create()
    endmethod
endstruct

//...

local B b = B.create()
set b.G = 2 //here it will actually be: set b.deleg.G = 2
10-13-2008, 09:59 PM#11
grim001
Yes, it works like that.
10-13-2008, 11:04 PM#12
MaD[Lion]
tat is awesome, awesome, allow making systems with plugins, extensions. :D

then i wonder if it allow this...
Collapse JASS:
struct K
    integer G
endstruct

struct A
    delegate K delegK
    static method create takes nothing returns A
        local A a = A.allocate()
        set a.deleg = K.create()
    endmethod
endstruct

struct B
    delegate A delegA
    static method create takes nothing returns B
        local B b = B.allocate()
        set b.deleg = A.create()
    endmethod
endstruct

//...

local B b = B.create()
set b.G = 2 //here it will actually be: set b.delegA.delegK.G = 2
10-15-2008, 04:32 AM#13
Pyrogasm
It might be useful to, you know, upload the JASSHelper manual as a tutorial here.
10-15-2008, 12:33 PM#14
Vexorian
only that it isn't a tutorial.
10-15-2008, 11:04 PM#15
Pyrogasm
I think it sort-of is. A reference guide is close enough, and it's nice for it to be online so it can be linked to.