mirror of
https://github.com/Z3Prover/z3
synced 2025-11-10 16:12:03 +00:00
Update comments on parameter handling in api_datatype.cpp
Clarify usage of parameters in API documentation.
This commit is contained in:
parent
c043c325bc
commit
9a8df8f80d
1 changed files with 5 additions and 5 deletions
|
|
@ -317,12 +317,12 @@ extern "C" {
|
||||||
|
|
||||||
sort_ref_vector params(m);
|
sort_ref_vector params(m);
|
||||||
|
|
||||||
// If parameters are provided explicitly, use them
|
// A correct use of the API is to always provide parameters explicitly.
|
||||||
if (num_parameters > 0 && parameters) {
|
// implicit parameters through polymorphic type variables does not work
|
||||||
for (unsigned i = 0; i < num_parameters; ++i) {
|
// because the order of polymorphic variables in the parameters is ambiguous.
|
||||||
|
if (num_parameters > 0 && parameters)
|
||||||
|
for (unsigned i = 0; i < num_parameters; ++i)
|
||||||
params.push_back(to_sort(parameters[i]));
|
params.push_back(to_sort(parameters[i]));
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ptr_vector<constructor_decl> constrs;
|
ptr_vector<constructor_decl> constrs;
|
||||||
for (unsigned i = 0; i < num_constructors; ++i) {
|
for (unsigned i = 0; i < num_constructors; ++i) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue