Skip to content

use Runtime.cArgs #1

@thewilsonator

Description

@thewilsonator

instead of cast(char*[])args.map!(arg=> arg.toStringz).array ~ null; which I'm pretty sure is wrong because a blind cast of args to char*[] is actually going to give .lengths in place of .ptrs since int[].length.offsetof == 0`.

https://dlang.org/phobos/core_runtime.html#.Runtime.cArgs

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