10
$\begingroup$

This describes the quote:

private function cross(question:Boolean):Number {
    if (question) {
        var answer:Number = Math.sqrt(-1);
    }
    return answer;
}
trace("Answer:", cross(truth));
$\endgroup$
4
  • $\begingroup$ Don't know which language this is... Does "answer" go out of scope after the if-block? $\endgroup$ May 24, 2016 at 11:22
  • $\begingroup$ @KeyboardWielder I think it's ActionScript. I don't know if it actually compiles though. $\endgroup$
    – BaSzAt
    May 24, 2016 at 11:23
  • $\begingroup$ @BaSzAt 'Tis Actionscript. Does compile. $\endgroup$
    – Chowzen
    May 24, 2016 at 11:43
  • 1
    $\begingroup$ Same general idea and same answer as What famous dialogue does this Java code represent?. $\endgroup$
    – DylanSp
    May 24, 2016 at 12:59

2 Answers 2

7
$\begingroup$

I'm going to take a guess

"You can't handle the truth", from A Few Good Men. I'm assuming that a complex number can't be handled by whatever Number is.

EDIT: Doing some research, it seems that no, complex number handling is not built in to AS's Number class and as such this is a valid interpretation of the above code.

$\endgroup$
1
  • $\begingroup$ The funny thing is that as soon as I saw the function named "cross" (as in cross-examine), this is the quote I thought it would be, but I couldn't figure out how it connected. $\endgroup$
    – Ryan
    May 24, 2016 at 15:36
4
$\begingroup$

My try:

I am the answer to your prayers.

From the movie:

End of days

Explanation:

the variable truth can mean true. So the if statement is evaluated to true and the answer is always $\sqrt{-1}$ which is i.
'cross' can be a reference to prayer. I know it's a long shot but maybe...

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.