HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[vJass] Can we use .evaluate and .execute with a public/private function ?

11-08-2008, 07:26 PM#1
Troll-Brain
Is there a way to doing this ?

Collapse JASS:
scope NewScope

   function F1 takes nothing returns nothing
      call F2.evaluate()
   endfunction

   private function F2 takes nothing returns nothing
   endfunction

endscope

And if yes what about if F2 is public ?
11-08-2008, 07:37 PM#2
Vexorian
Yes, there is.
11-08-2008, 08:22 PM#3
Troll-Brain
Ok but how ...
11-08-2008, 08:30 PM#4
Here-b-Trollz
Collapse If I'm not mistaken:
scope NewScope
    private keyword F2

    function F1 takes nothing returns nothing
        call F2.evaluate()
    endfunction

    private function F2 takes nothing returns nothing
    endfunction

endscope
11-08-2008, 08:30 PM#5
Ammorth
Collapse JASS:
private keyword F2

here-b-trollz beat me to it
11-09-2008, 09:31 AM#6
Troll-Brain
Thx guys.