which means?library is placed at the topmost part while scope is lower.
how is library more systematic than scopes?If you want systematic coding in your map, ignore scope, use library.
i have no idea w/e Zinc isVexorian removed scope in Zinc.
how is library more systematic than scopes?
i have no idea w/e Zinc is
Libraries will enable you to use all of the functions (If they aren't [ljass]private[/ljass] functions ) in any other trigger in your map...
This is done my, when you start the map, it's all moved into the Map Header which is, as kingking said, at the top of the map (Meaning at the top of the trigger list in the trigger editor XD)
Scopes simply doesn't do that, but it's the same otherwise
Bot hscopes and libraries enables you to use vJASS features, such as private/public keyworks for functions, globals, struct, methods etc.
They also enable you to use structs (Don't know if you can do this outside scopes/libraries, but I believe not... It's a vJASS feature still) which basically is an integer, but you can still store information in it... (It's hard to explain for me, as I don't exactly know the deppest information on it )
Well, I'd believe that it's ones oppinion, as I still use scopes more than libraries... Simply because if you make a spell, you will not want to use the functions in it outside the spell, and therefore you make it unable to be so by using scopes
But, if you make a system, then you'll definately want to be able to use the functions outside the library/scope, and here you should use libraries
Then don't mind if... It's simply an alternative of the vJASS language, if you don't like the syntax of it
And, I'd believe that libraries/scopes are just about the same as classes in C languages, because they aren't really namespaces... :S
Structs are certainly not dependant on scopes and libraries. Why would they be?They also enable you to use structs (Don't know if you can do this outside scopes/libraries, but I believe not...
function vJassIsEpic takes nothing returns nothing
globals
string s = "Horrifying syntax abuse win!"
endglobals
call BJDebugMsg(s)
endfunction
For that matter, the use of almost everything else you said (private/public keyworks for functions, globals, struct, methods etc) isn't either. The only exception is public or private functions, since they need to be within a scope or a library to be public or private.
Yeah, I know... But those things might still be a bit too complicated for this guys, if he doesn't really know what scopes and libraries are yet..
But yeah, it should still be correct information