-
Notifications
You must be signed in to change notification settings - Fork 161
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
document basic representations of objects (IsInternalRep
, IsDataObjectRep
, IsComponentObjectRep
, IsPositionalObjectRep
, IsAttributeStoringRep
, IsPlistRep
)
#3615
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall a nice improvement, thanks! Just two minor remarks.
lib/list.gd
Outdated
## | ||
## <Description> | ||
## &GAP; lists created by entering comma separated values in square brackets | ||
## are represented internally as so-called <E>plain lists</E>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this is not 100% correct: for boolean lists, GAP returns a blist rep:
gap> IsPlistRep( [ true, false ] );
false
gap> IsBlistRep( [ true, false ] );
true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I will fix this.
lib/type.g
Outdated
## <!-- This will be changed eventually, in order to avoid conflicts between--> | ||
## <!-- ordinary components and components corresponding to attributes.--> | ||
## This will be changed eventually, in order to avoid conflicts between | ||
## ordinary components and components corresponding to attributes.--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we should just remove those last 4-5 lines?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
Note that the rule for the component names had not been commented out before, but still it was not part of the documentation since the GAPDoc "chunk" was not requested by any of the XML files.
- document `IsInternalRep`, `IsDataObjectRep`, `IsComponentObjectRep`, `IsPositionalObjectRep`, `IsAttributeStoringRep`, `IsPlistRep` Up to now, these representations were either not documented at all or just via `<Index>` entries in some general text. - adjusted the relevant cross-references: Use `<Ref...>` instead of `<C>` elements.
cbf11a0
to
93668e2
Compare
Codecov Report
@@ Coverage Diff @@
## master #3615 +/- ##
===========================================
- Coverage 84.64% 72.27% -12.38%
===========================================
Files 698 635 -63
Lines 345549 308791 -36758
===========================================
- Hits 292483 223171 -69312
- Misses 53066 85620 +32554
|
@fingolfin I have updated my pull request according to your comments. |
IsInternalRep
, IsDataObjectRep
, IsComponentObjectRep
, IsPositionalObjectRep
, IsAttributeStoringRep
, IsPlistRep
)
documented
IsInternalRep
,IsDataObjectRep
,IsComponentObjectRep
,IsPositionalObjectRep
,IsAttributeStoringRep
,IsPlistRep
Up to now, these representations were either not documented at all
or just via
<Index>
entries in some general text.I would like to refer to some of these representations in the documentation for
IsMatrixObj
andIsVectorObj
; for that, they should be properly documented.adjusted the relevant cross-references:
Use
<Ref...>
instead of<C>
elements.