| 10-16-2004, 08:27 PM | #1 |
is there a difference between the native and BJ functions? They seem to have the same name with the exception of the BJ at the end and do the same things. Anyone? |
| 10-16-2004, 09:40 PM | #2 |
usually BJ functions are used in GUI. also, if im not mistaken they are slightly slower. and some differences are like substring and substringBJ i still get a lil confused between them. Substring(grunt, 0,2) will give you "gr" i think.. but SubstringBJ(grunt, 1,2) will give you "gr" |
| 10-18-2004, 06:20 AM | #3 |
Guest | Usually the BJ function is calling the non-BJ one with a slightly modified argument than what you used to call the BJ function.. you can go here [http://jass.sourceforge.net/doc/api/...j-source.shtml] and here [http://jass.sourceforge.net/doc/api/...j-source.shtml] to directly compare the arguments, etc. of the respective functions. e.g.: [http://jass.sourceforge.net/doc/api/...rce.shtml#1618] JASS://=========================================================================== // The parameters for the API Substring function are unintuitive, so this // merely performs a translation for the starting index. // function SubStringBJ takes string source, integer start, integer end returns string return SubString(source, start-1, end) endfunction Then just take note of which numbers go where when you convert an understandable GUI trigger into a less-understandable function call o.0 (why the **** doesn't the jass tag work? >.>) |
| 10-23-2004, 04:32 PM | #4 |
From my understanding, some of the BJ functions leak locations, aswell. I'm not 100% sure about this, however. |
| 10-27-2004, 03:38 PM | #5 |
Nope, I don't know of a single BJ function that directly leaks a location. The only leak that happens is when you don't destroy your copy of the point that the function returns. ~Cubasis |
| 10-28-2004, 06:57 AM | #6 | |
Quote:
It's the code tag. |
