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

Move definition of std_grp to std.replicode #212

Merged
merged 1 commit into from
Feb 4, 2022
Merged

Conversation

jefft0
Copy link
Collaborator

@jefft0 jefft0 commented Feb 2, 2022

user.classes.replicode loads std.replicode which defines groups like primary. These are defined in std.replicode like this using std_grp:

primary:(std_grp 2 0 0.4 0 |[])

Even though std_grp is used in std.replicode, the !def for it is in user.classes.replicode. This works because Replicode first runs a preprocessor on all the !def, then uses them. So it is possible for a !def to appear after it is used. But this is counter-intuitive. This pull request moves the !def for std_grp from user.classes.replicode to std.replicode.

@jefft0 jefft0 merged commit 4f5651c into dev Feb 4, 2022
@jefft0 jefft0 deleted the std_grp-in-std.replicode branch March 6, 2022 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant