Isn't this kind of a solution to a Halting Problem, if code is able to 
detect another, which has the same kind of halting problem?

For example:

func Halting(a, iterate bool) {
  if iterate {
    atrue, afalse bool
    atrue = Halting(true, false)
    afalse = Halting(false, false)
  }
  For a {
      i = i + 1
      if i > 100 {
        return false
      }
    }
    return true
}

Halting(a, iterate)

Isn't the solution, whether this fits another program with halting problem 
- in this simple case the solution is simply a != a.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/a1b369ac-11bd-4308-9b52-3bc708cb8fffn%40googlegroups.com.

Reply via email to