Skip to content

Update README.md #1

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

Merged
merged 1 commit into from
Mar 23, 2018
Merged

Update README.md #1

merged 1 commit into from
Mar 23, 2018

Conversation

9898287
Copy link
Contributor

@9898287 9898287 commented Mar 23, 2018

No description provided.

@timotheecour
Copy link
Owner

thanks!

[D] FFI Works in CTFE

how so?
IIRC can't use functions without source code in CTFE in D (such as printf etc)

@9898287
Copy link
Contributor Author

9898287 commented Mar 23, 2018

stdc is built into the D standard library, printf works fine.

@timotheecour
Copy link
Owner

timotheecour commented Mar 23, 2018

D:
dmd -o- main.d

void main(){
  import core.stdc.stdio;
  enum s=printf("hello\n");
}

Error: printf cannot be interpreted at compile time, because it has no available source code

/cc @9898287 happy to merge once you address that point

@9898287
Copy link
Contributor Author

9898287 commented Mar 23, 2018

Ah, I see what you mean.

@timotheecour timotheecour merged commit aa81483 into timotheecour:master Mar 23, 2018
@timotheecour
Copy link
Owner

timotheecour commented Mar 24, 2018

merged but fixed that comment i mentioned in 3ee5760 ; thanks!

@mratsim mratsim mentioned this pull request Mar 24, 2018
10 tasks
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.

2 participants