The defendants had possession of the “ Apparatus” in controversy, and if the contract alleged by ■them as a second ground of defence, exists as alleged, they .are entitled to have such possession until the contract shall be observed and performed, first, on the part of the plaintiffs, or until it shall in some way be discharged. It is not void for want of consideration, as contended; the mutual .agreement of the parties to do the several things stipulated to be done on the one side and on the other was a sufficient ■consideration to support it.
It is regular, proper, and very much better in every way, "that all pleadings shall be orderly and formal, but the mere -form is not generally essential. If sufficient matter is *285pleaded, the law determines the character and effect of the pleading, without regard to the particular name given it. If the defence in question were not in legal effect a counterclaim well pleaded, the plaintiffs should have demurred to it in apt time, that is, when it was pleaded and before the pleadings were settled and completed. If it were not a counter-claim, a cause of action was alleged irregularly, it is true, but the parties might have litigated it by consent, certainly with the sanction of the Court, because the Court had jurisdiction of the parties and the cause of action.
But if it is granted that a cause of action was not well pleaded as a defence, a sufficient defence arising after the action began was alleged, if the defendants could avail themselves of it in this action. It is contended that they could pot, because it arose after, the action began. Ordinarily and generally this is true, but in some cases a defence thus arising may be pleaded by answer as in the case of a plea since the last continuance by consent of the parties, or by order of the Court, with a view to the ends of justice, upon just terms as to costs — as where the plaintiff took possession of the land in controversy after the action began, and like cases. Bailey v. Cochran, I Hay, 120 (104); Morgan v. Cone, 1 D. & B., 234; Johnson v. Swain, Busb. 335; Thompson v. Red, 2 Jones, 412.
We think that the plaintiffs, by implication, consented to allow the defendants to allege and avail themselves of the defence in question, if it were well founded — at least they waived their right to object on the ground that it arose after the action began. They did not demur to the answer as they might have done — on the contrary they made reply thereto, expressly denying and controverting the defence in question . no objection was raised that it could not be alleged and relied upon in this action until after the pleadings were settled and completed and after the jury were empanelled to try the issue of fact raised by them. It was then too late to *286raise such objection. There is nothing in the nature of the defence pleaded and relied upon in the pleading that puts it without the jurisdiction of the Court in this action in the absence of appropriate objection made in apt time. The •Court might and ought to have disposed of it upon its merits.
The defendants are entitled to a new trial.
Error.