In the case of, say, a learning disabled adult, they (his defence) may not know it nor that he was not able to properly understand the proceedings and defend himself properly to be able to raise the condition, therefore it is the court's duty to if brought to their attention, IMO. One example is the case of Barry George (IQ 70), convicted as the murderer of Jill Dando, whose learning disability was not raised until his 2nd or 3rd appeal 8 years later when he was finally acquitted on other evidence that also exculpated him.
Which way will Masipa go?