Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@skoppe
Copy link
Contributor

@skoppe skoppe commented Dec 11, 2018

I added betterC support simply by disabling the toString method of Optional(T).

@aliak00
Copy link
Owner

aliak00 commented Dec 11, 2018

Ooh the beginnings of betterC support 😍

I'm not very familiar with betterC support and what exactly it entails, does this alone make this fully betterC compliant? If not then how much work do you think it would additionally take?

I tried running the unittests (just the ones in source/optional:

dmd -i source/optional/package.d -I=source/ -I=tests -unittest -I=~/.dub/packages/bolts-0.8.1/bolts/source -main -betterC

It just throws an error:

/usr/local/opt/dmd/include/dlang/dmd/std/array.d(784): Error: TypeInfo cannot be used with -betterC

No stack trace or anything to say where it's coming from.

@aliak00 aliak00 merged commit c46b2d6 into aliak00:master Dec 11, 2018
@skoppe
Copy link
Contributor Author

skoppe commented Dec 11, 2018

This small change made it fully compatible with betterC. I was surprised as well :)

You are using features in your unittest that don't work in betterC, so you'll get errors there. But it doesn't matter.

Thanks for the quick merge!

@aliak00
Copy link
Owner

aliak00 commented Dec 11, 2018

Cool! and no probs. Thanks for the PR!
Pushed v0.8.0 out as well with you fix - should be available as soon as dub picks it up.

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