-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
line breaking hints in the
ViewString
method for lists
Up to now, `ViewObj` and `ViewString` behaved differently for lists, due to the prescribed line breaking hints `\<` and `\>`. This was a reason why new `ViewString` methods for complicated GAP objects were likely to produce output that looked different from `ViewObj` output. With the proposed change, the line breaking hints in the `ViewObj` and `ViewString` methods for finite lists are made consistent with those that appear in the kernel function `PrintListDefault`. Only a few test examples are affected by this change, they have been adjusted. (I think that after this change, it will make sense to add more `ViewString` methods.) An open problem is that `ViewString` cannot handle self-referential objects. Note that the GAP kernel does some bookkeeping in the case of `ViewObj`; an analogous mechanism would be possible also for `ViewString`.
- Loading branch information
1 parent
4a3108e
commit 578ea99
Showing
6 changed files
with
50 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters