elect
tailrec fun Window.getParent(): Window { val parent = parentWindow return when { flags has Wf.ChildWindow && flags hasnt (Wf.Popup or Wf.ChildMenu) -> if(parent != null) getParent() else this else -> this } }
A modern programming language that makes developers happier.