Skip to content

Add basic String #191

@edg-l

Description

@edg-l

The String is a struct with a known layout, maybe mark it with a attribute telling its a lang item like in rust.

#[lang = "String"]
struct String {
    ptr: *mut u8,
    len: u64,
    cap: u64,
}


// The literal is of type String (converted by the compiler internally)
let x: String = "hello world!";

Metadata

Metadata

Assignees

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