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 > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 01-08-2018, 02:15 PM   #1
Yrth
User
 
Yrth's Avatar
 
Join Date: Jul 2010
Posts: 72

Yrth has little to show at this moment (4)

Default Extend array and _

I sorta get why you can't extend multiple objects in warcraft's engine, but I was wondering if you can extend array and another object? Extending array seems to alter the structs generated functionality, so it seems like it may not have the same restriction as extending 2+ 0-8191 ID'd objects
Yrth is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 05-09-2018, 09:09 PM   #2
Anitarf
Procrastination Incarnate


Development Director
 
Join Date: Feb 2004
Posts: 8,186

Submissions (19)

Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)Anitarf has a brilliant future (903)

2008 Spell olympics - Fire - SilverApproved Map: Old School Alliance TacticsHero Contest #2 - 3rd PlaceSpell making session 2 winner

Default

The "extends array" basically just removes instance allocation functionality (the allocate and deallocate methods as well as some internal values used by those methods) from the struct, essentially making it a dumb array, hence the syntax "extends array".

If you make a struct extend another struct, it uses the original struct's allocation functionality (among other things) and expands upon it. It doesn't make sense to also use "extends array" in this case, since that removes the very functionality that you are trying to expand on by extending another struct.

Think of structs that extend an array as not really structs at all, just arrays with struct-like syntax.
__________________
Anitarf 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 05:13 PM.


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

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