OPINION OP THE COURT
(after'stating the facts as above). 1. The first assignment of error sufficiently raises the question of whether or not the court erred in dismissing the case upon the grounds stated in the order of dismissal. It was not necessary for the relator to take any exception to the action of the court in dismissing said cause; for, if the court erred by such action, its judgment was inherently and fatally defective, appearing upon the face of the record proper, and may be contested by w^rit of error or appeal without an exception. Baca v. Perea, 25 N. M. 442, 184 P. 482; Barnes v. Scott, 29 Fla. 285, 11 So. 48; Platteter v. Lumber Co., 149 Wis. 186, 135 N. W. 535; Long v. Billings et al., 7 Wash. 267, 34 P. 936.
2. The alternative writ does not contain any allegations of fact showing the obligation of respondents to perform the act they were commanded in it to perform as required by the statute, and in that regard lacked allegations sufficient to state a cause of action. Upon granting of the alternative vrit, the application is functus officio, and the alternative becomes the initial pleading in the case and should state a cause of *580action within itself. 18 R. C. L. p. 294; Crawford v. District School Board, 68 Or. 388, 137 P. 217, 50 L. R. A. (N. S.) 147 Ann. Cas. 1915C, 477. The question of its sufficiency in that regard was properly raised in the answer.
“The answer to an alternative wirt of mandamus under our statutes may assign any legal reasons upon which respondent relies to defeat the issuance of the peremptory writ as well as plead the facts, if any exists, on which he relies to defeat the issuance of the same.” State ex rel. Garcia v. Board of Co. Com’rs, 21 N. M. 632, 157 P. 656; Beadles v. Fry, 15 Okl. 428, 82 P. 1041, 2 L. R. A. (N. S.) 855.
3. Statements in the writ, making reference to a copy of the application as being annexed, were insufficient to incorporate the allegations of fact in the application as part of the writ. There was no reference made except it was stated that a copy of such application was annexed. This did not make its allegations of fact a part of the writ, even if such allegations could by proper reference be so made.
4. The relator cites Wampler v. State of Indiana ex rel. Alexander, 148 Ind. 557, 47 N. E. 1068, 38 L. R. A. 829, to the effect that the alternative writ of mandamus may be supplemented by the facts stated in the application in determing whether it is sufficient to withstand a demurrer. This authority supports such contention, but the statement of that court in the opinion shows that this practice is local, and by reason of long recognition by the courts apparently it was not thought best to change it. It is not the law of any other jurisdiction, that we can discover, where the writ is held to be the initial pleading after its issuance.
5. The respondents filed an answer raising the questions of the legal sufficiency of the writ and the application, also answering the allegations of fact in the application as though they were incorporated in the writ. Paragraphs 1 and 2 of the answer are in the nature of general demurrers, and, standing alone, should have been sustained by the district court and would have authorized a dismissal unless an amend*581ment upon request had been allowed. Such request does not appear upon the record proper.
6. Had the respondents stopped here, or had they confined their answer to matters of fact alleged in the writ, there could be no question but that the ruling of the district court in dismissing the action was correct. But, after properly raising- the questions of law ■s to the sufficiency of the writ, respondents followed same by paragraph 3, in which they attack the allegations in the application as failing to state a cause of action, and follow this by paragraph 4, beginning as follows:
“And for a further return to said alternative writ, and not waving- any questions heretofore presented, and protesting that the allegations of the said petition for the writ are not allegations in the writ, yet further pleading in answer in obedience to the order of this court,” etc.
Then follows a full and complete answer to the matters of fact s.et out in the application for the writ; first, by a denial of paragraphs 4, 5, 6, and 7, and, following this, by an answer beginning, “And for further answer and return to the writ and by way of new matter,” etc. Then follows an answer in confession and avoidance of the allegations of fact set out in the application, as though they appeared in the writ.
The question now is whether or not, by this character of pleading, the respondents did not thus incorporate into the writ the allegations of fact contained in the application. They cannot protest that this act was not intended to waive certain rig-hts when in fact it did, as a matter of law, waive them. The statute provides that pleadings in mandamus—
“shall be construed and amended in the same manner as pleadings in a civil action, and the issues thereby joined shall be tried and further proceedings had in the same manner as in a civil action.” Section 3420, Code of 1915.
Defects in pleadings can be wayVed or supplied in the same manner as in ordinary civil actions. It has been held by the Supreme Courts of Missouri and Pennsylvania that the writ itself can be waived if the part*582ies, by their acts or agreement, treat the application as a writ. In a case where the respondent demurred to the application, and the parties by agreement waived the issuance of the writ, the. Supreme Court of Missouri said:
“The regular course of procedure would have been to let the alternative writ issue and raise the questions arising on its face by a motion to quash, but, as both sides have preferred to present the issues in this form, we will so consider them.” State ex rel. St. Louis, etc. Co. v. Cook, 171 Mo. 348, 71 S. W. 829.
It is held in State v. Gordon, 223 Mo. 1, 122 S. W. 1008, that, where an application for a writ of mandamus- has been filed and the respondent appears and demurs, such application will be treated as an alternative writ unless objection is made. To the same effect is State ex rel. Muns et al. v. Hackmann, 283 Mo. 469, 223 S. W. 575. Where respondent agreed to regard the application and the order of court as the alternative writ, it was held by the Supreme Court of Pennsylvania he was bound by such agreement, though otherwise his objections to the proceedings were well taken. Kuhbach v. Irving Glass Co., 220 Pa. 427, 69 A. 981, 20 L. R. A. (N. S.) 185.
The only allegations of fact against which this answer can be directed are those contained in the application; and they are treated by the respondents as though they were contained in the writ. The answer must be considered as a whole. Paragraphs 1 and 2 thereof, raising the legal sufficiency of the writ, should have been considered by the court in the light of the attitude of the respondents, in treating the writ as containing the allegations of fact in the application, which, though no part of a pleading that should have been answered, yet are made such by respondents tendering an issue thereon in their answer to the writ.
7. The more difficult question is whether or not there are sufficient allegations of fact,-as distinguished from conclusions of law, that -would authorize the issuance of a peremptory writ. Allegations in man*583damus proceedings are to be made as in ordinary actions. The facts should be pleaded with the same certainty, neither more nor less. Code 1915, § 3420 ; 38 C. J. title “Mandamus,” § 580. The allegations in the writ, supplemented by those in the application, are certainly indefinite and contain numerous conclusions of law, and no doubt are subject to a motion to make more definite and certain. But we have concluded that, aided by the answer, they are sufficient to withstand a motion to dismiss.
“The alternative writ shall state concisely the facts showing the obligation of the defendant to perform the act, and his omission to perform it, and command him,” etc. Code of 1915, § 3415.
The objections made to the legal sufficiency of the writ, and urged by respondents, are disposed of as follows:
It was not necessary to alleg’e specifically that the city of Albuquerque had elected to be governed by the terms of chapter 121 of the Session Laws of 1919; it being made clear that the charter of the city of Albuquerque contained the referendum provision which was quoted in the application, as follows:
“No act, ordinance or resolution or order of the governing body of the city shall, unless it be declared an emergency measure on the ground of urgent public need, go into effect until thirty days after its passage. If at any time within the thirty days, a petition signed by twenty per cent, of the qualified voters is presented to the governing body, asking that the measure in question be submitted to a vote of the people for adoption or rejection, said measure shall not go into effect until an election shall have been held as petitioned. It shall be the duty of the governing body of the city to provide for such election within thirty days of the filing' of the petition.”
The fact that the city has adopted the terms of the act in question is necessarily inferred from the fact that such povision is a part of the city’s charter. There is no law in New Mexico by which cities may adopt the commission form of government, with a charter containing the referendum provision quoted, except under said act of 1919. The answer of the city and its com*584missioners admits the city’s existence as a municipality and under the commission form of city government, and that the respondents named are its commissioners. These allegations point unerringly to the fact'that the city was organized under the said act of 1919, if such allegations are necessary.
• The allegation that the petition contained more than 20 per cent of the names of the qualified voters of the city of Albuquerque was a statement of an ultimate fact and not a conclusion of law; and it was not necessary to plead the evidentiary facts required to prove it. Likewise the allegation that the petitioners were qualified voters of the city of Albuquerque is sufficient to show they are authorized to petition for the election.
•The alleged charter provision quoted limits the time within which to present such petition for referendum to thirty days after the passage of the ordinance. Relator alleged, after quoting the charter provision in full, that, “within the time thus limited in said statute and said city charter, this relator presented to said city and its gqverning body, a petition,” etc., referring back to the charter provision containing the thirty days’ limitation. This is not a conclusion of law but a statement of facts.
9. The laws of New Mexico provide:
“The writ shall not issue in any case where there is a plain, speedy and adequate remedy in the ordinary course of law. It shall issue on the information of the party beneficially interested.” Code of 1915, § 3414.
While there are exceptions, it is the general rule that •mandamus may be issued to enforce the performance of a public duty by public officers, upon application of any citizen whose rights are affected in common with those of the public. Such person is “beneficially interested” in the enforcement of the laws.
“In this country there has been diversity of decision upon the question whether private persons can sue out the writ to enforce the performance of a public duty, unless the nonperformance of it works to them a special injury; and in several of the states it has been decided that they *585cannot. * * * There is, we think, a decided prepon^ ■dera'nce of American authority in favor of the doctrine that private persons may move for a mandamus to enforce a public duty, not due to the government as such, without the intervention of government law officers.” Union Pac. R.R. Co. v. Hall, 91 U. S. 343, 23 L. Ed. 428.
The Supreme Court of North Dakota, in passing upon the exact question involved, well expresses the views of this court "in the following language:
"We think it will be proper to add, with a view to settling a very embarassing and much controverted question of practice, that in cases where the state, as such, is directly interested as a party, the Attorney General should apply for 'the writ, or in some manner signify his assent to the proceeding; but on the other hand, where the controversy does not concern the state, as such, but does concern a large class of citizens in common, as, for example, the citizens and taxpayers of a particular county, town, city or district, the required affidavit may properly be made by any citizen of the locality affected. In the class of cases last referred to, any citizen of the locality affected is, in our opinion, ‘beneficially interested’ within the meaning of section 5518, Comp. Laws 1887. It follows that, in this class of cases, the writ may be invoked by any citizen without the concurrence of any officer. * Where the right sought to be secured by the writ is private only, the relator must, of course, show that, his individual interest is affected in some way peculiar to himself.” State ex rel. Hail Ass’n v. Carey, Insurance Com’r, 2 N. D. 36, 49 N. W. 165.
To like effect are State ex rel. Trauger v. Nash, Governor, 66 Ohio St. 612, 64 N. E. 558; People v. Daley, 37 Hun (N. Y.) 461; People ex rel. Kay v. Swanstrom, President, etc., 79 App. Div. 94, 79 N. Y. S. 934; In re Wheeler, 62 Misc. Rep. 37, 115 N. Y. S. 605; People v. Colorado Cent. R. R. Co. (C. C.) 42 F. 638; State ex rel. Gillilan et al. v. Home Ry. Co., 43 Neb. 830, 62 N. W. 225; State ex rel. Currie et al. v. Weld, County Auditor, 39 Minn. 426, 40 N. W. 561; State ex rel. Elmendorf et al. v. San Antonio St. Ry. Co., 10 Tex. Civ. App. 12, 30 S. W. 266; Attorney General v. Boston, 123 Mass. 460; Pumphrey v. Mayor, etc., of Baltimore, 47 Md. 145, 28 Am. Rep. 446;. State ex rel. Taylor v. Lord et al., 28 Or. 498, 43 P. 471, 31 L. R. A. 473; Wampler v. State ex rel. Alexander, 148 Ind. 557, 47 N. E. 1068, 38 L. R. A. 829; Florida, etc. Ry Co. v. State, 31 Fla. 482, 13 So. 103, 20 L. R. A. 419, 34 Am. St. Rep. 30; People ex rel. Jackson *586v. Suburban R. R. Co., 178 Ill. 594, 53 N. E. 349, 49 L. R. A. 650; 18 R. C. L. title “Mandamus,” §§ 273, 274; High’s Extraordinary Legal Remedies, “Mandamus,” § 431; McQuillen on Municipal Corporations, § 284; Dillon on Municipal Corporations, (5th Ed.) § 1527. .
The opposite view was held by the California courts until recently. Ellis et al. v. Workman, City Treas., 144 Cal. 113, 77 P. 822, and Ashe v. Board of Supervisors, 71 Cal. 236, 16 P. 783. But in the case of Conn v. City Council of the City of Richmond, 17 Cal. App. 705, 121 P. 714, 719, the court referred to the earlier decisions and stated that by subsequent decisions the Supreme Court of California had adopted the general rule, which we follow.
10. It is, alleged that the relator is a citizen of the United States, of the state of New Mexico, and of Bernalillo county, and a resident of the City of Albuquerque, also, in substance, that the relator is one of the people of Albuquerque entitled to “a remedy by referendum provided by the statute and by section 2 of article 3 of the duly adopted City Charter of said city. * * * ”
A resident may or may not have such beneficial interest in the enforcement of a public duty by public officers as will entitle him to bring this character of action, and such allegation, standing alone, may not imply that degree of identification with the citizenship of the community that would give the right. The relator might have been a temporary resident of the city of Albuquerque at the time of the bringing of the action and with his legal domicile at some other place in Bernalillo county. We find it unnecessary to decide whether this is. a sufficient allegation. But the allegation that relator is one of the people of the city entitled to the remedy of referendum as provided by the charter of the city sufficiently alleges that he is a citzien of Albuquerque and entitled to vote upon the question. It is true that a portion of these allegations are conclu*587sions of law, but such allegations are sufficient to withstand a general demurrer.
In testing the sufficiency of the writ, as aided by the answer, to state a cause of action, we should not overlook the established rule that a complaint is, to be held good unless there is failure to allege some matter essential to the relief. It is not to be held insufficient because of incompleteness or indefiniteness of its allegations, or because it states conclusions. Michelet v. Cole, 20 N. M. 357, 149 P. 310; Maddison v. Bryan, 31 N. M. 404, 247 P. 275. This rule would seem especially appropriate in mandamus, which is designed to afford a summary and speedy remedy. State ex rel. Garcia v. Board of Commissioners, 21 N. M. 632, 157 P. 656.
11. The word “people,” used in the alleged city charter, has reference to the qualified voters of the city. People v. Counts, 89 Cal. 15, 26 P. 612; Beverly v. Sabin, 20 Ill. 357; Bryan v. City of Lincoln, 50 Nebr. 620, 70 N. W. 252, 35 L. R. A. 752; Boyd v. Nebraska, 143 U. S. 135, 12 S. Ct. 375, 36 L. Ed. 103.
12. We think it is alleged, inferentially at least (38 C. J. title “Mandamus,” § 581) that relator was a citizen of the city of Albuquerque, and this is a sufficient allegation of beneficial interest.
While the pleadings are not satisfactory and are indefinite in many particulars, they are not ¡vulnerable to a motion to dismiss. It should be stated that, as a matter of practice, the trial court should treat legal exceptions to a'writ of mandamus (which, under the statute, must be made by answer) as a demurrer would be treated in ordinary actions, giving the same opportunity to amend upon the writ being held insufficient in law.
This disposes of all questions raised in the briefs of the parties, and it follows that the case should be reversed and remanded for further proceedings not inconsistent with this opinion, and it is so ordered.
BICKLEY and WATSON, JJ., concur.