Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd limited CTFE #253
Conversation
mahkoh
added some commits
Sep 20, 2014
This comment has been minimized.
This comment has been minimized.
SiegeLord
commented
Sep 20, 2014
|
I've always thought that it'd be easiest to make all of these be associated statics of the |
steveklabnik
reviewed
Sep 20, 2014
| the detailed description above resolves to `core::mem::size_of` because some | ||
| programs might wish to avoid even `libcore`. | ||
| Thus, this feature should live behind a feature gate. |
This comment has been minimized.
This comment has been minimized.
steveklabnik
Sep 20, 2014
Member
All new features are going to end up landing behind a feature gate at first, so this part isn't really relevant.
This comment has been minimized.
This comment has been minimized.
mahkoh
Sep 20, 2014
Author
Contributor
I meant that this should be behind a feature gate until real CTFE has been implemented (if ever). Real CTFE would immediately replace this, but because this is not 100% compatible you would have to continue to maintain this if it's not marked unstable in some way.
This comment has been minimized.
This comment has been minimized.
+1. This seems like an excellent workaround until we get "real CTFE". |
This comment has been minimized.
This comment has been minimized.
|
We discussed this in the triage meeting today, and while CTFE of some kind is something we are interested in, it is backwards compatible and not high enough priority to block 1.0. Therefore we are postponing discussion on this until post-1.0. Thanks for the RFC! |
nrc
closed this
Sep 25, 2014
nrc
added
the
postponed
label
Sep 25, 2014
withoutboats
pushed a commit
to withoutboats/rfcs
that referenced
this pull request
Jan 15, 2017
This comment has been minimized.
This comment has been minimized.
fschutt
commented
Dec 13, 2017
•
|
The "rendered" link in the first comment is broken. Just wanted to report that. |
This comment has been minimized.
This comment has been minimized.
|
@fschutt Thanks; Fixed =) |
mahkoh commentedSep 20, 2014
•
edited by Centril
Implement compile time evaluation of a limited set of compiler-internal functions:
size_ofmin_align_ofpref_align_ofRendered
Old rendered link (not working)
EDIT: Fixed rendered link / Centril