geicogeko
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 2727 |
|
|
| 10 Sep 2012 04:18 PM |
Is there any good way to get a paradox in programming or at least emulate one? This is a feeble attempt: paradox(){/*This Statement is false.*/ bool x = true; while(true){ if(x = true){ x = false; } else x = true; } } |
|
|
| Report Abuse |
|
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 10 Sep 2012 04:25 PM |
That's exactly why paradox is paradox. Anyway, in that case this is paradox too(in programming):
while true do end |
|
|
| Report Abuse |
|
|
geicogeko
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 2727 |
|
| |
|
zars15
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 9999 |
|
|
| 10 Sep 2012 04:29 PM |
Well not really sure... It's like really fast loop, so not really paradox... Maybe this could be paradox
true = false
I don't remember how to rename already named functions, but yeah. |
|
|
| Report Abuse |
|
|
belial52
|
  |
| Joined: 10 Oct 2009 |
| Total Posts: 8074 |
|
|
| 10 Sep 2012 05:09 PM |
| @zars, if (true == false) then |
|
|
| Report Abuse |
|
|
stravant
|
  |
 |
| Joined: 22 Oct 2007 |
| Total Posts: 2893 |
|
|
| 10 Sep 2012 05:44 PM |
You can't do so.
A paradox results from the ability to make an inconsistent construction using a language. Programming languages have an internally consistent syntax, and therefor they won't let you express a paradox. |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2012 06:56 PM |
| You cannot get a paradox with programming because programming languages were designed to avoid the flaws that allow you to use paradoxes in normal languages. |
|
|
| Report Abuse |
|
|