Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spec: constexpr() or custom preprocessor for go build #23880

Closed
rpzrpzrpz opened this issue Feb 16, 2018 · 1 comment
Closed

spec: constexpr() or custom preprocessor for go build #23880

rpzrpzrpz opened this issue Feb 16, 2018 · 1 comment

Comments

@rpzrpzrpz
Copy link

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

1.10

Does this issue reproduce with the latest release?

Yes, because not part of the language or toolchain

What operating system and processor architecture are you using (go env)?

OSX,Windows,LInux

What did you do?

Had to hack the "go generate" command to preprocess source code, does not run automatically
as part of go build, must run explicity and separately, which is bad.

Hack preprocessor has to edit original source code, also very bad. Not like constexpr( ) which is compile time execution of C functions but leaves the source code untouched!

@rpzrpzrpz rpzrpzrpz changed the title custom preprocessor for go build constexpr() or custom preprocessor for go build Feb 16, 2018
@bradfitz
Copy link
Contributor

Sorry, but we're not adding code that runs automatically as part of building (that was a part of the design of "go generate"). And we're not modifying the language (e.g. constexpr) at this time.

@mikioh mikioh changed the title constexpr() or custom preprocessor for go build spec: constexpr() or custom preprocessor for go build Feb 21, 2018
@golang golang locked and limited conversation to collaborators Feb 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants