Initial element access compilation; Carefully approaching std array

This commit is contained in:
dcodeIO
2018-01-13 23:38:07 +01:00
parent dd596b015d
commit 2c009c67d3
21 changed files with 9914 additions and 88 deletions

19
std/assembly.d.ts vendored
View File

@ -202,6 +202,12 @@ declare class Array<T> {
constructor(capacity?: i32);
}
/** Class representing a C-like array of values of type `T` with limited capabilities. */
declare class CArray<T> {
[key: number]: T;
private constructor();
}
/** Class representing a sequence of characters. */
declare class String {
@ -281,13 +287,16 @@ interface Number {}
interface Object {}
interface RegExp {}
// Internal decorators (not yet implemented)
// Internal decorators
/** Annotates an element being part of the global namespace. */
/** Annotates an element as a program global. */
declare function global(target: Function): any;
/** Annotates a method being an operator overload. */
/** Annotates a method as an operator overload. */
declare function operator(token: string): any;
declare function struct(target: Function): any;
declare function size(size: usize): any;
/** Annotates a class as explicitly layed out and allocated. */
declare function explicit(target: Function): any;
/** Annoates a class field with an explicit offset. */
declare function offset(offset: usize): any;