Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

How to register templated structs? #3

@Laeeth

Description

@Laeeth

@PDEF struct Test(string foo)
{
@PDEF string a = "hello";
@PDEF Choice choice = Choice.hippy;
}

A pdef there doesn't work. But you can't declare it in the alias either. Eg
alias TestA=@PDEF Test!"1";
alias TestB=@PDEF Test!"2";

So you can always wrap the types manually using PyD. But some doc/enhancement might be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions