04 Dec 14, 03:09PM
(03 Dec 14, 10:53PM)stef Wrote: a) even a "C++ programmer" should be able to understand polish notation
b) you should learn cubescript, before you try to "improve" it
c) if you really need that: alias cmop [($arg2 $arg1 $arg3)]
(04 Dec 14, 01:59PM)Mousikos Wrote:(04 Dec 14, 06:46AM)Mhtsos Wrote: Ok guys DONT judge me that hard as i said its my first time!Its useful for me putting in order!Where is your problem?If you want something PERFECTLY written ask Bukz for it!!!!
I'm not saying your script is bad, I'm just saying if you know C++, cubescript should be really easy for you. Also, what stef is saying is, when you call a command, say "cmop 1 + 2", 1 is $arg1, + is $arg2, and 2 is $arg3. Therefore, since you are writing the operator out verbatim, it's simpler to write "alias cmop [$arg2 $arg1 $arg3]"
Stef could say that a better way to write this script is alias cmop [$arg2 $arg1 $arg3]