Examples Wanted: Usages of "body" as a Symbol Name
rcorre via Digitalmars-d
digitalmars-d at puremagic.com
Wed Oct 5 07:34:29 PDT 2016
On Wednesday, 5 October 2016 at 12:02:21 UTC, Andrej Mitrovic
wrote:
> On Wednesday, 5 October 2016 at 02:11:14 UTC, Meta wrote:
>> [...]
>
> Physics libraries absolutely.
>
> https://github.com/d-gamedev-team/dchip/blob/55f43e5f0cf67c8bc190711b69eb16230fa6188e/src/dchip/cpBody.d#L184
> https://github.com/d-gamedev-team/dbox/blob/6f81fe065abec1e7def44fc777c5d8e9da936104/examples/demo/tests/bodytypes.d#L103
>
> And in various C / C++ libraries. It's rather annoying that
> body is taken, it's a fairly rarely used keyword in D but often
> used in other languages.
I created D bindings for chipmunk (unlike dchip which
reimplemented it in D) and I had to change a _lot_ of bodies:
https://github.com/rcorre/chipmunkd/commit/d6bde5b649c70a53f4295f522e660fae3c1e740f
More information about the Digitalmars-d
mailing list