Skip to content

Feature request: an equivalent of "char buffer[64];" in a struct #1333

Closed
@certik

Description

@certik

Right now if you do:

@dataclass
class some_struct:
    buffer: i8[64]

It will produce an array with a descriptor. But rather, we need it to produce char buffer[64], that is, 64 bytes of memory. It could be that we can use a descriptor by default, but if we do:

@ccallable
@dataclass
class some_struct:
    buffer: i8[64]

Then it would use the array directly.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions