HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Difference between boolean and boolexpr?

06-25-2009, 05:30 AM#1
dismas
Hi, what's the difference between boolean and boolexpr? It seems like a simple boolean could be used for everything. I guess this also leads to the question, what is boolexpr used for?
06-25-2009, 01:20 PM#2
Vexorian
boolean is a Jass type that can be true or false.

boolexpr is a handle, a wc3 object that points to a boolean function, Jass' lack of native function pointers forced blizz to do this kind of hack for conditions and enum filters.