HaxeFoundation / HaxeFoundation/haxe.org-comments

[code.haxe.org] Macros - Generating Arrays with values

Open
#45 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

# Generating Arrays with values - Macros - Haxe programming language cookbook

Sometimes it is useful make your arrays compile-time, for example to embed data from files, to pre-calculate heavy calculations, generating lookup tables and other similar things. With macros this is perfectly doable but requires some basic knowledge of expression building. In this article you will find out how to build arrays and return them as expressions in a macro function.

[https://code.haxe.org/category/macros/build-arrays.html](https://code.haxe.org/category/macros/build-arrays.html)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.