Skip to content

Commit

Permalink
Explicitly qualify constructors that are extended (#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored Feb 10, 2025
1 parent 17b5967 commit 76f3b7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/constructors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ julia> String(val) # an empty GAP list is a string
```
"""
function String(obj::GapObj)
function Core.String(obj::GapObj)
Wrappers.IsStringRep(obj) && return CSTR_STRING(obj)
Wrappers.IsString(obj) && return CSTR_STRING(Wrappers.CopyToStringRep(obj)::GapObj)
throw(ConversionError(obj, String))
Expand Down Expand Up @@ -259,7 +259,7 @@ julia> BitVector(val)
```
"""
function BitVector(obj::GapObj)
function Base.BitVector(obj::GapObj)
!Wrappers.IsBlist(obj) && throw(ConversionError(obj, BitVector))
# TODO: a much better conversion would be possible, at least if `obj` is
# in IsBlistRep, then we could essentially memcpy data
Expand Down

0 comments on commit 76f3b7e

Please sign in to comment.