Skip to content

implements cast #1589

@ringabout

Description

@ringabout

there is a more serious problem, cast it is not implemented, currently it is a strange type pruning (i.e respects how pointer casting works in old compiler, but not general type casting), which is not cast at all, for example

import std/syncio
echo cast[float](42)

Will produce 42, not converted int bytes to float
see ASVIEST#1

Originally posted by @ASVIEST in #1478

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