June 07, 2012 Phobos » [phobos] [D-Programming-Language/phobos] ec9b7f: reduce benchmark count | |||
|---|---|---|---|
| |||
...SysTime opCmp tests
- cache DateTime to SysTime conversions
- 3000ms => 60ms
Commit: 6b7174d3f9120abc011f65a128fafdf50c2496ce
https://github.com... | |||
June 07, 2012 General » Re: Implicit type conversions with data loss | |||
|---|---|---|---|
| |||
A google search reported that it was an explicit requirement of Ada to not have... | |||
June 07, 2012 General » Re: Implicit type conversions with data loss | |||
|---|---|---|---|
| |||
Thanks for your answers. I want a language with metaprogramming and compile-time computations. | |||
June 06, 2012 General » Re: Implicit type conversions with data loss | |||
|---|---|---|---|
| |||
You want a sane language: use a different language, most C-derived language have insane... | |||
June 06, 2012 General » Re: Implicit type conversions with data loss | |||
|---|---|---|---|
| |||
...such conversions is to wrap your integers in structs. In some ways, making implicit conversions... | |||
June 06, 2012 General » Re: Implicit type conversions with data loss | |||
|---|---|---|---|
| |||
There is no information lost. Try casting it back to int. -- Dmitry Olshansky | |||
June 06, 2012 General » Re: Implicit type conversions with data loss | |||
|---|---|---|---|
| |||
Surely structs could work?
struct safeType(T) {
T value;
}
Define all operations that you can... | |||
June 05, 2012 General » Re: Implicit type conversions with data loss | |||
|---|---|---|---|
| |||
A little example of the difficulties involved: http://blog.regehr.org/archives/721 Bye, bearophile | |||
June 05, 2012 General » Re: Implicit type conversions with data loss | |||
|---|---|---|---|
| |||
...So D tries to _statically_ refuse value conversions that cause data loss. But for practical... | |||
June 05, 2012 General » Re: Implicit type conversions with data loss | |||
|---|---|---|---|
| |||
I doubt that a 'feature' that's been in D and it's predecessors for... | |||
Copyright © 1999-2021 by the D Language Foundation