Skip to content

Add ArrayToExpTuple to std.meta#3369

Closed
Hackerpilot wants to merge 1 commit intodlang:masterfrom
economicmodeling:add-ArrayToExpTuple
Closed

Add ArrayToExpTuple to std.meta#3369
Hackerpilot wants to merge 1 commit intodlang:masterfrom
economicmodeling:add-ArrayToExpTuple

Conversation

@Hackerpilot
Copy link
Contributor

This is a metaprogramming helper template that's been in EMSI's internal D library for a while. We've found it to be very useful for converting the results of CTFE function calls to Arguments used by static foreach loops.

@jcrapuchettes
Copy link
Contributor

This was shown in my lightning talk at DConf2015.

@JakobOvrum
Copy link
Contributor

See #1472. The range is a better abstraction than the array for this functionality.

@schuetzm
Copy link
Contributor

schuetzm commented Jun 6, 2015

See also this thread, which contains a very elegant implementation:
http://forum.dlang.org/thread/cxahuyvnygtpsaseieeh@forum.dlang.org?page=2

@Hackerpilot
Copy link
Contributor Author

Is anybody going to make a pull request for that alternate implementation?

@Hackerpilot Hackerpilot deleted the add-ArrayToExpTuple branch October 29, 2015 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants