Skip to content

Arbitrary annotation numbers #3

@fledder

Description

@fledder

I like to use a 100, 102, 104, 200, 202, 204, etc. annotation style. I was able to get the annotations to be numbered the way I want to by setting the anno number before each definition, but the annotation list only goes until it finds an invalid number. I was able to solve this by keeping track of the maximum number used for an annotation and looping up to that number. I set up the annotationDefinition to take a second argument to set the annotation number, since that is defined at definition time. I don't know if that's the best way or not, but it worked out for what I was doing.

It's not terribly backward compatible, though, at least the way I was doing it. It could probably be made so with an optional argument, but that might break the multi-definition macro that is there for defining the var name and anno name at the same time.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions