wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Warcraft Editing Tools
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 04-12-2009, 03:47 AM   #1531
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

Seshiro: Your example is terrible. I make an identical function interface and an identical function signature and they work. I've been wasting 30 minutes of my time trying to reproduce all the freaking structs you use in that example and still not being able to get to the part in which it says the types are incompatible.

Edit: I have just reproduced all the structs , and the beast compiles correctly.

FriendlyPsycho: You need to be way more specific than that, I have been compiling interfaces and structs with stubs and all with the last version and it all works well to me, so try coming up with an actual example.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 04-12-2009, 05:11 AM   #1532
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

G.0.

It reminds me of win.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 04-12-2009, 05:51 AM   #1533
TriggerHappy
 
Join Date: Feb 2008
Posts: 405

Submissions (2)

TriggerHappy will become famous soon enough (43)TriggerHappy will become famous soon enough (43)

Default

Nice job on the modules vex ^_^

I don't really see how thistype is useful, won't it always be integer?

.name is also really useful for debugging functions. good job.

Last edited by TriggerHappy : 04-12-2009 at 05:54 AM.
TriggerHappy is offline   Reply With Quote
Old 04-12-2009, 06:40 AM   #1534
Here-b-Trollz
Corkscrew Chainsaw!!!
 
Join Date: Jun 2006
Posts: 711

Here-b-Trollz has a spectacular aura about (149)

Hero Contest #2 - 2nd Place

Default

YAAAYYYYYYYYYY THISTYPE OMGZZZZZ

EDIT: OMGZZXVGH MODUELZ TOOO!!??!?! ZOGM!!!
__________________
By reading this signature, you agree that I cannot be held accountable for anything that I might say or do.

Last edited by Here-b-Trollz : 04-12-2009 at 06:54 AM.
Here-b-Trollz is offline   Reply With Quote
Old 04-12-2009, 07:37 AM   #1535
dead_or_alivex
User
 
Join Date: Jun 2008
Posts: 72

dead_or_alivex has little to show at this moment (3)

Default

Yay for modules!

Question on .name: what's the difference between using it and using SCOPE_PRIVATE?

Quote:
Originally Posted by TriggerHappy187
I don't really see how thistype is useful, won't it always be integer?
Refer here.

Quote:
.name is also really useful for debugging functions. good job.
How so?
dead_or_alivex is offline   Reply With Quote
Old 04-12-2009, 07:41 AM   #1536
TriggerHappy
 
Join Date: Feb 2008
Posts: 405

Submissions (2)

TriggerHappy will become famous soon enough (43)TriggerHappy will become famous soon enough (43)

Default

Quote:
How so?

Well, not useful, but convenient.

Collapse JASS:
   function test takes nothing returns nothing
        debug call BJDebugMsg("Some error occured in " + test.name)
    endfunction

Vex, I still want to be able to extend native types with structs ^_^
TriggerHappy is offline   Reply With Quote
Old 04-12-2009, 07:49 AM   #1537
Troll-Brain
User
 
Join Date: Oct 2006
Posts: 1,490

Submissions (1)

Troll-Brain has a spectacular aura about (134)

Default

How does a module compile ?
One function call or several calls, like an extends ?
Troll-Brain is offline   Reply With Quote
Old 04-12-2009, 08:57 AM   #1538
dead_or_alivex
User
 
Join Date: Jun 2008
Posts: 72

dead_or_alivex has little to show at this moment (3)

Default

Quote:
Well, not useful, but convenient.
But in your example there, since you already know the name of the function, why use .name? You could just say, "an error has occurred in function: test".

And besides, you need the name of the function to get its scoped name, so it's pretty static.

Last edited by dead_or_alivex : 04-12-2009 at 08:58 AM.
dead_or_alivex is offline   Reply With Quote
Old 04-12-2009, 01:06 PM   #1539
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

Quote:
YAAAYYYYYYYYYY THISTYPE OMGZZZZZ

EDIT: OMGZZXVGH MODUELZ TOOO!!??!?! ZOGM!!!
sarcasm much?
Quote:
Question on .name: what's the difference between using it and using SCOPE_PRIVATE?
none, well, you wouldn't have to remember that it is private or public.

Quote:
How does a module compile ?
One function call or several calls, like an extends ?
It is like a textmacro , actually.

Quote:
Well, not useful, but convenient.
Sometimes I wish we had some sort of stack trace.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 04-12-2009, 01:16 PM   #1540
Troll-Brain
User
 
Join Date: Oct 2006
Posts: 1,490

Submissions (1)

Troll-Brain has a spectacular aura about (134)

Default

Quote:
It is like a textmacro , actually.
That means there is no function calling at all, all the code is rewritten ?

Last edited by Troll-Brain : 04-12-2009 at 01:17 PM.
Troll-Brain is offline   Reply With Quote
Old 04-12-2009, 01:20 PM   #1541
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

Yes.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 04-12-2009, 01:20 PM   #1542
Troll-Brain
User
 
Join Date: Oct 2006
Posts: 1,490

Submissions (1)

Troll-Brain has a spectacular aura about (134)

Default

Quote:
Originally Posted by Vexorian
Yes.
<3
Troll-Brain is offline   Reply With Quote
Old 04-12-2009, 01:45 PM   #1543
FriendlyPsycho
User
 
FriendlyPsycho's Avatar
 
Join Date: Feb 2009
Posts: 109

Submissions (1)

FriendlyPsycho is on a distinguished road (12)

Default

Quote:
Originally Posted by Vexorian
FriendlyPsycho: You need to be way more specific than that, I have been compiling interfaces and structs with stubs and all with the last version and it all works well to me, so try coming up with an actual example.

*sniff*

This all started happening when I was going to implement StatusDetect, it had a compile error with that library, and then when I removed and re-added it to the map, the compile error ceased to show but this issue with interfaces manifested itself. :/ I used vG.0 when I compiled this time, and it's still there hmph. I use the jassnewgenpackv5a, and I just update jasshelper, should I update to v5b as well?
Zoom (requires log in)
Attached Images
File Type: jpg sniff.JPG (89.3 KB, 234 views)
__________________
" YOU RAGE, YOU LOSE! "

Last edited by FriendlyPsycho : 04-12-2009 at 01:50 PM.
FriendlyPsycho is offline   Reply With Quote
Old 04-12-2009, 01:48 PM   #1544
Here-b-Trollz
Corkscrew Chainsaw!!!
 
Join Date: Jun 2006
Posts: 711

Here-b-Trollz has a spectacular aura about (149)

Hero Contest #2 - 2nd Place

Default

Quote:
Originally Posted by Vexorian
sarcasm much?

No. That's genuine mind numbing glee.
__________________
By reading this signature, you agree that I cannot be held accountable for anything that I might say or do.
Here-b-Trollz is offline   Reply With Quote
Old 04-13-2009, 02:22 AM
Alevice
This message has been deleted by Alevice. Reason: disregard this, it was an error on a var assignment war3err told us of.
Old 04-13-2009, 04:36 AM   #1545
dead_or_alivex
User
 
Join Date: Jun 2008
Posts: 72

dead_or_alivex has little to show at this moment (3)

Default

Just wondering, would it be difficult to implement function/method overloading?

Collapse JASS:
struct effectstruct
    effect fx = null

    static method create takes string modelpath, unit subject, string attachpt returns effectstruct
        // ...
        call AddSpecialEffectTarget(...)
        // ...
    endmethod

    static method create takes string modelpath, real x, real y returns effectstruct
        // ...
        call AddSpecialEffect(...)
        // ...
    endmethod
endstruct

The specific application I have in mind is overloading constructors, but I guess there could be others. It would be useful for systems and stuff.
dead_or_alivex is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 01:29 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services