February 02, 2015 Re: how convert the range to slice ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile | On Monday, 2 February 2015 at 16:56:02 UTC, bearophile wrote: > Nordlöw: > >> Is started digging a bit... >> >> The magic happens at line 103 in cast.c. >> >> How do I most conveniently figure out which members (functions) a type (e->type) has? >> >> I figured I could check for typical InputRange members and issue a hint about using .array if e->type has them. > > It's probably better to ask such questions on GitHub (and to open an enhancement request in Bugzilla). > > Bye, > bearophile I cracked it. First proof of concept here https://github.com/nordlow/dmd/commit/40ce0ecf34f90c4d3053c47e9286d7574f596e15 |
February 02, 2015 Re: how convert the range to slice ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nordlöw | On Monday, 2 February 2015 at 19:04:52 UTC, Nordlöw wrote: https://github.com/nordlow/dmd/commit/40ce0ecf34f90c4d3053c47e9286d7574f596e15 Made it PR at https://github.com/D-Programming-Language/dmd/pull/4371 |
June 09, 2016 Re: how convert the range to slice ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nordlöw | On Monday, 2 February 2015 at 21:04:11 UTC, Nordlöw wrote: > Made it PR at > https://github.com/D-Programming-Language/dmd/pull/4371 Synched with DMD D conversion and improved isInputRange and message at: https://github.com/dlang/dmd/pull/4371 |
Copyright © 1999-2021 by the D Language Foundation