Skip to content

proposed breaking change to dart:ffi: stop reifying Pointer<T> #49935

@mraleph

Description

@mraleph

I propose we stop reifying underlying element type for Pointer<T> objects in preparation to unboxing pointer or migrating FFI to views. I am filing this issue for discussion.

Currently Pointer<T> objects are carrying their reified type around, but most of the APIs are based on the static type.

I propose we fix any APIs that are still using dynamic type and switch Pointer<T> factory to produce Pointer<Never> instead.

/cc @dcharkes @mkustermann

Metadata

Metadata

Assignees

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.library-ffi

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions