Skip to content

Issue 1838 - reification for fields with macro class, field name reification. - haxe #1838

Closed
@issuesbot

Description

@issuesbot

[Google Issue #1838 : https://code.google.com/p/haxe/issues/detail?id=1838]
by lucadelt...@googlemail.com, at 21/05/2013, 23:44:15
macro class { } currently works fine in all cases of reification that I have tested... except for field name reification.

var t = macro :Int;
var i = "y";
var e = macro $i + 10;
var fields = (macro class { function x($i:$t):$t return $e; }).fields;

all works well, but we can't do:

(macro class { function $i(); }).fields

as the $i will give a compiler error.

Suggest permitting $ prefix for identifiers in general so that we can get reificatino for fields properly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

platform-macroEverything related to Haxe macros

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions