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-13-2009, 04:40 AM   #1546
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

overloading won't happen.

default arguments will.

And this is the third time I say it the last 24 hours, and probably the 23rd time I say it this month.
__________________
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-13-2009, 05:17 AM   #1547
Pyrogasm
Lackadaisically Absent.
 
Pyrogasm's Avatar


Respected User
 
Join Date: Sep 2006
Posts: 4,523

Submissions (9)

Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)

Hero Contest - Fourth place

Send a message via ICQ to Pyrogasm Send a message via AIM to Pyrogasm Send a message via MSN to Pyrogasm Send a message via Yahoo to Pyrogasm
Default

I like this Module business. I think grim will like it a lot too, in fact.
__________________
Quote:
Originally posted by Rising_Dusk
Your spells are mostly ignored because they are not very cool so we aren't very excited to review/approve them, but you are incredibly persistent and won't give us an excuse to graveyard it. That is generally what results in a resource being ignored for a long time.

The Spell Request Thread Done for, unless someone else wants to revive it...
It lasted a damn long time.

Please; Ask for Help Appropriately














Quote:
Originally posted by Kyrbi0
Huh. Almost makes me wish I had a girlfriend, to take advantage of today (wait, no, that's not what I meant... I mean, take advantage of the fact that it is international women's day... gah, never mind).
Quote:
Originally posted by Pyrogasm
Rome may not have been built in a day, but the Romans sure as hell didn't say "look at this great city we built guys!" when they had nothing more than a bit of stone and some cottages.
Pyrogasm is offline   Reply With Quote
Old 04-13-2009, 10:09 PM   #1548
SerraAvenger
User
 
Join Date: Oct 2008
Posts: 42

SerraAvenger has little to show at this moment (5)

Default

as modules are able to implement other modules, can they also call textmacros?
SerraAvenger is offline   Reply With Quote
Old 04-13-2009, 10:57 PM   #1549
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

They can call textmacros or rather you can call a textmacro from inside a module.
__________________
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-14-2009, 11:24 AM   #1550
dead_or_alivex
User
 
Join Date: Jun 2008
Posts: 72

dead_or_alivex has little to show at this moment (3)

Default

Quote:
overloading won't happen.
But why not - is it hard, impractical, against design intentions, etc.?

Default arguments?
dead_or_alivex is offline   Reply With Quote
Old 04-14-2009, 01:10 PM   #1551
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

Just a notice: currently modules are 'bugged' in the sense that private members are not really private.

In the next version, private members/methods in modules will be truly private and they won't overlap with similarly named methods/members in the struct / other modules.

Just notice, this means you shouldn't make modules that expect the struct to be able to use their private stuff.
__________________
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-14-2009, 01:42 PM   #1552
cohadar
master of fugue
 
cohadar's Avatar
 
Join Date: Jun 2007
Posts: 2,453

Submissions (5)

cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)

Default

Quote:
Just a notice: currently modules are 'bugged' in the sense that they do not work[citation needed].
In the next version, they will work, but it is stil uncertain to what purpose[citation needed].
Just notice, this means you shouldn't expect to be able to use them anyway[citation needed].
__________________
Omg database crash deleted my signature, as a side effect this immensely improved wc3c.

Last edited by cohadar : 04-14-2009 at 01:44 PM.
cohadar is offline   Reply With Quote
Old 04-15-2009, 12:05 AM   #1553
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

I am updating jasshelper tonight as I have the "private in modules" stuff ready. If anyone got bug reports for quick things (actual bug reports, that I could just paste in a script to test) this night is a good moment to share.


Boy, modules are so amazing, the most useful thing to have been added to vJass since structs, really.
__________________
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-15-2009, 07:41 AM   #1554
cohadar
master of fugue
 
cohadar's Avatar
 
Join Date: Jun 2007
Posts: 2,453

Submissions (5)

cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)

Default

Quote:
Originally Posted by Vexorian
Boy, modules are so amazing, the most useful thing to have been added to vJass since structs, really.

So you finally admit you added a bunch of useless crap in between.

Can I ask why exactly moduless are so great? Last time I checked it was just a textmacro with no arguments that was limited to structs.
__________________
Omg database crash deleted my signature, as a side effect this immensely improved wc3c.

Last edited by cohadar : 04-15-2009 at 07:45 AM.
cohadar is offline   Reply With Quote
Old 04-15-2009, 10:54 AM   #1555
akolyt0r
In Flames
 
akolyt0r's Avatar
 
Join Date: Jan 2006
Posts: 1,154

Submissions (3)

akolyt0r has a spectacular aura about (120)

Default

maybe textmacros are great, but ugly ...
modules are very nice !!
__________________
akolyt0r is offline   Reply With Quote
Old 04-15-2009, 11:38 AM   #1556
grim001
requires vJass
 
grim001's Avatar


Code Moderator
 
Join Date: Nov 2006
Posts: 1,540

Submissions (10)

grim001 is just really nice (277)grim001 is just really nice (277)

Send a message via AIM to grim001
Default

Quote:
Originally Posted by cohadar
So you finally admit you added a bunch of useless crap in between.

Can I ask why exactly moduless are so great? Last time I checked it was just a textmacro with no arguments that was limited to structs.

They are pretty much cosmetic at the moment, but they should eventually gain functionality that can't be duplicated without some very ugly textmacros.

They will hopefully promote a new style of coding where people inject re-usable functionality into their structs instead of reimplementing the same stuff in 5 systems.
grim001 is offline   Reply With Quote
Old 04-15-2009, 12:52 PM   #1557
cohadar
master of fugue
 
cohadar's Avatar
 
Join Date: Jun 2007
Posts: 2,453

Submissions (5)

cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)

Default

That smells like 0x10000 inlining abuse all over the place.

Maybe what we really need is a better syntax for textmacros, not textmacro specializations.
__________________
Omg database crash deleted my signature, as a side effect this immensely improved wc3c.
cohadar is offline   Reply With Quote
Old 04-15-2009, 01:31 PM   #1558
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

textmacros are low level constructs that do a lot of cnp things.

modules are what other languages call mix-ins, they are scoped, can be nested, have 'optional', look cleaner, etc. This means vjass now has mix-in inheritance and also multiple inheritance and other things it didn't have before. As they are a has-a instead of is-a they are very useful and do not suffer from the limiting weaknesses in extends.

'improving' textmacro syntax would be non-sense, textmacros are already great at what they do. Making them work with the same extend of modules would require to compile them after libraries, but that would limit them a lot.

Just because they compile to similar code doesn't mean they are the same thing, it would be like saying dynamic arrays and structs are the same. Different tools for different jobs.
__________________
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-15-2009, 02:53 PM   #1559
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.1
since there were no bug reports I was forced to release a very short version.
Vexorian is offline   Reply With Quote
Old 04-15-2009, 04:09 PM   #1560
Strilanc
User
 
Strilanc's Avatar
 
Join Date: Jun 2007
Posts: 917

Submissions (4)

Strilanc has a spectacular aura about (131)

2008 Spell olympics - Fire - Gold

Default

I've been using modules. Comments:

- I often want to hide the module details from the parent class. In particular, I'm worried about colliding with existing names when people try to use my modules. There needs to be a scope meaning "visible only inside module" and a scope meaning "visible to module and to class". I suggest "Private" and "Protected" respectively.

- I keep wanting to supply arguments to modules, like a type or something. Currently I have to wrap them inside text macros, and creating a module for each type I need. I don't have a suggestion, but this is a bit of an annoyance.

The lack of method overloading can become a limitation very quickly, as well. Particularly for desirable operator overloads like [].

The binding to private values *before* insertion in the target struct is awesome.
__________________
Don't pay attention to this signature, it's self-contradictory.

Last edited by Strilanc : 04-15-2009 at 04:17 PM.
Strilanc 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 12:36 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