Jump to content

BSL talk:Manual: Difference between revisions

m
+cat
No edit summary
m (+cat)
 
(7 intermediate revisions by 3 users not shown)
Line 95: Line 95:
:Okay, that must be a limitation of the function stack in BSL.  If you put "fork BSL_chaos", it goes all the way to six. I had already tried "fork BSL_chaos" in the previous code, but it doesn't accept the keyword "fork" in that context. I guess I should have said something earlier, but I assumed for some reason that the execution stack was bigger than that, so I figured it was "iterate" that was limiting us somehow. Well, congrats on figuring out a way to use "iterate", although I still think it was meant for arrays. --[[User:Iritscen|Iritscen]] 23:19, 8 December 2009 (UTC)
:Okay, that must be a limitation of the function stack in BSL.  If you put "fork BSL_chaos", it goes all the way to six. I had already tried "fork BSL_chaos" in the previous code, but it doesn't accept the keyword "fork" in that context. I guess I should have said something earlier, but I assumed for some reason that the execution stack was bigger than that, so I figured it was "iterate" that was limiting us somehow. Well, congrats on figuring out a way to use "iterate", although I still think it was meant for arrays. --[[User:Iritscen|Iritscen]] 23:19, 8 December 2009 (UTC)
::Ah ok, always fork... But I don't think we can use iterate already. "something2 = BSL_chaos; iterate over something2 using somethingX" didn't produce error messages but how can we set iterate variable to numbers? Using "var int somethingX = 3" failed. :| --[[User:Paradox-01|Paradox-01]] 10:34, 9 December 2009 (UTC)
::Ah ok, always fork... But I don't think we can use iterate already. "something2 = BSL_chaos; iterate over something2 using somethingX" didn't produce error messages but how can we set iterate variable to numbers? Using "var int somethingX = 3" failed. :| --[[User:Paradox-01|Paradox-01]] 10:34, 9 December 2009 (UTC)
:::Well normally an "iterate" command is used on an array. So if we could make an array, we might be able to say "iterate over theArray using somethingX", and on each runthrough, somethingX would be set to the next element in theArray. If they decided that arrays were not needed, or too much work to implement, they might have removed them from BSL. --[[User:Iritscen|Iritscen]] 11:29, 9 December 2009 (UTC)
::::"if we could make an array" Maybe we need a new [[OBD:StNA|StNA]] file. --[[User:Paradox-01|Paradox-01]] 21:59, 12 December 2009 (UTC)
:::::Eh, that's not really the same thing. We'd need to insert new code into the existing BSL code to add array functionality. Unless it's already lurking in the source and we just haven't figured out how to use it yet. --[[User:Iritscen|Iritscen]] 23:00, 12 December 2009 (UTC)
----
"The only conditional statement is "if", with an optional "else" follow-up."
You can also use 'else if' statements. [[User:Script 10k|Script 10k]] ([[User talk:Script 10k|talk]]) 12:00, 6 December 2015 (CET)
:Oh, thanks! For some reason I thought I had checked for that and found there to be no such feature in BSL. Interesting how Bungie never used "else" or "else if". --[[User:Iritscen|Iritscen]] ([[User talk:Iritscen|talk]]) 23:26, 6 December 2015 (CET)
----
I think I'm done with BSL:Manual and [[BSL:Introduction]] to the extent of my abilities, so if anyone wants to correct a mistake, or discuss an issue on a talk page, it's the right time to do so. --[[User:Iritscen|Iritscen]] ([[User talk:Iritscen|talk]]) 00:28, 7 December 2015 (CET)
[[Category:BSL docs]]