What's the difference between boolexpr and Boolean types?

chango

New Member
Reaction score
1
Please don't say boolean is native and boolexpr is handle :p. I want a more in deep explanation if there is one :D.

Are these types interchangeable?

Thanks.
 

Cohadar

master of fugue
Reaction score
209
boolean is not a statement, it is a variable.
Statements can be of undetermined logical value.
Some may even be true and false at the same time.

but that has nothing to do with Jass... (unless you have desyncs in your map :D )
 
Z

Zouflain

Guest
boolean is not a statement, it is a variable.
Statements can be of undetermined logical value.
Some may even be true and false at the same time.

but that has nothing to do with Jass... (unless you have desyncs in your map :D )
Eh? In physics things can be true and false at once (I forget what it's called, but two or more simultaneous quantum states until being observed ect/ect), but in programming (okay in JASS, GML and C/C++, as I don't know other languages) a statement is either true or false... unless I've missed something? A bit is one or zero, and a comparison between bits either returns that they are the same or different. At the core, all operations are in binary, so...

PS. Not sure - so don't quote me on this - but I've always heard that one should not destroy boolexpr's because they are automatically recycled. Only in certain circumstances should they be destroyed, and even then it's generally safer to just leave them alone as it's easy to introduce bugs by destroying them.
 

chango

New Member
Reaction score
1
Again,

Thanks for taking the time to answer this kind of nobish questions :D

Thanks

P.S.:


local boolean thisIsTrue = true
local boolean thisIsFalse = false

if(thisIsTrue == thisIsFalse) Then :nuts:


C ya
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top