Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add support for unsafe.Add() for arrays and slices #1130

Open
@nevkontakte

Description

@nevkontakte

unsafe.Add() as added in Go 1.17.

Even though we can't support general-case pointer arithmetic, it should be possible to support unsafe.Add() for slices and arrays specifically. This should improve portability with the code like https://github.com/gopherjs/gopherjs/blob/master/compiler/natives/src/crypto/internal/subtle/aliasing.go (or so I think).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions