Skip to content

Incorrect delegation from String to ViewString #541

Open
@fingolfin

Description

@fingolfin

The GAP library has a bewildering number of functions for printing/viewing/displaying objects to the terminal or into a string. There is a strict hierarchy how methods for the various involved operations may delegate, described in the GAP reference manual.

The following method violates this:

InstallMethod( String,
"for homalg matrices",
[ IsHomalgMatrix ],
ViewString );

To fix this, just install the ViewString method for IsHomalgMatrix as a method for String instead and then delegate "the other way around".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions