mirror of
https://github.com/Z3Prover/z3
synced 2025-11-09 23:52:02 +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);
|
||||
|
||||
// If parameters are provided explicitly, use them
|
||||
if (num_parameters > 0 && parameters) {
|
||||
for (unsigned i = 0; i < num_parameters; ++i) {
|
||||
// A correct use of the API is to always provide parameters explicitly.
|
||||
// implicit parameters through polymorphic type variables does not work
|
||||
// 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]));
|
||||
}
|
||||
}
|
||||
|
||||
ptr_vector<constructor_decl> constrs;
|
||||
for (unsigned i = 0; i < num_constructors; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue