Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse variable names that begin with ordered #866

Closed
randommm opened this issue Aug 13, 2014 · 1 comment
Closed

parse variable names that begin with ordered #866

randommm opened this issue Aug 13, 2014 · 1 comment
Assignees
Milestone

Comments

@randommm
Copy link
Member

I don't know if this issue already exists, but any variable name that begins with ordered can be declared, but cannot the assigned or used in sampling statement.

For instance, the following parses:

stanc(model_code="
parameters {
  real orderedanything;
}
model {

}
")

But this doesn't:

stanc(model_code="
parameters {
  real orderedanything;
}
model {
  orderedanything ~ normal(0, 1);
}
")
@randommm randommm changed the title parse variables names that begin with ordered parse variable names that begin with ordered Aug 13, 2014
@bob-carpenter bob-carpenter added this to the v2.4.0++ milestone Aug 13, 2014
@bob-carpenter bob-carpenter self-assigned this Aug 13, 2014
@bob-carpenter
Copy link
Contributor

That's a bug. I assigned it to myself with high priority.

  • add warning for "ordered" as prefix on variables
  • add doc that ordered is unallowed as a prefix

@syclik syclik removed the C++ API label Sep 19, 2014
@syclik syclik closed this as completed in 0c4a455 Oct 1, 2014
syclik added a commit that referenced this issue Oct 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants