Difference between revisions of "Talk:LlGetSunDirection"
Jump to navigation
Jump to search
(New page: In the first example to "quickly determine whether it is day or night" you see the first line read as : <B>integer lightsOn = -1;//not TRUE or FALSE</B> I think its a very bad idea to l...) |
|||
Line 5: | Line 5: | ||
I think its a very bad idea to label -1 as FALSE in capital in the comment, since FALSE is 0 in LSL and in most if not all programming languages | I think its a very bad idea to label -1 as FALSE in capital in the comment, since FALSE is 0 in LSL and in most if not all programming languages | ||
the comment should simply read "<B>// lights off</B>", this would be clear and wouldn't require any modification to the code | the comment should simply read "<B>// assume lights off on start</B>", this would be clear and wouldn't require any modification to the code | ||
--[[User:Francoise Eichel|Francoise Eichel]] 04:40, 14 May 2009 (UTC) | --[[User:Francoise Eichel|Francoise Eichel]] 04:40, 14 May 2009 (UTC) |
Revision as of 21:47, 13 May 2009
In the first example to "quickly determine whether it is day or night" you see the first line read as :
integer lightsOn = -1;//not TRUE or FALSE
I think its a very bad idea to label -1 as FALSE in capital in the comment, since FALSE is 0 in LSL and in most if not all programming languages
the comment should simply read "// assume lights off on start", this would be clear and wouldn't require any modification to the code
--Francoise Eichel 04:40, 14 May 2009 (UTC)