Skip to content

class-aware C coercion function, no-alloc coerce where possible #3913

Description

@jangorecki

We should have a function for coercing an object to another type and class, in a efficient way, and class aware (for double type, different classes uses different NA representation so we need to handle that).
It is important because coercion is a very common operation, especially num-int or int-num for user convenience so they don't have to type L suffix, but there are tons of other applications.

Initial work on that can be found in #3765 (generic coerceClass)

No-alloc coerce written for C assign function #3909 is good foundation, that potentially could be extracted out to an standalone function.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions