Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-16 Thread Chris Wright via Digitalmars-d
On Wed, 05 Oct 2016 02:11:14 +, Meta wrote: > I'm currently writing up a DIP to propose removing `body` as a keyword > to allow it to be used for variable names, functions, etc. I'm looking > for examples and contexts where `body` would normally be used as a > variable, function name, alias,

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-07 Thread Jonathan M Davis via Digitalmars-d
On Friday, October 07, 2016 10:57:00 Nick Treleaven via Digitalmars-d wrote: > On Wednesday, 5 October 2016 at 19:45:20 UTC, Basile B. wrote: > > In this case let's drop completely the contracts...you can put > > them in the body, at the beg or at the end... > > Language support for contracts

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-07 Thread Nick Treleaven via Digitalmars-d
On Wednesday, 5 October 2016 at 19:45:20 UTC, Basile B. wrote: In this case let's drop completely the contracts...you can put them in the body, at the beg or at the end... Language support for contracts enables a super class to enforce contracts on its virtual methods.

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-06 Thread Luís Marques via Digitalmars-d
On Wednesday, 5 October 2016 at 02:11:14 UTC, Meta wrote: - Video games, such as referring to the player character's body Many years ago I did a D port of the C-Dogs game from C to D and it was quite annoying to have to rename all the body variables to body_. It has happened in other

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-06 Thread pineapple via Digitalmars-d
On Thursday, 6 October 2016 at 06:38:06 UTC, Jonathan M Davis wrote: Yeah, the fact that the body keyword is not required normally but is when you have in/out contracts is annoying, completely aside from what the keyword used is. I don't care much about losing the name body to a keyword, but I

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-06 Thread Jonathan M Davis via Digitalmars-d
On Thursday, October 06, 2016 05:25:19 Patrick Schluter via Digitalmars-d wrote: > Sorry, I find the actual body without body keyword much more > natural (i.e. intuitive) than having the body requiring it only > when there are contracts. It would be even consistent with the > template syntax

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-06 Thread Jonathan M Davis via Digitalmars-d
On Wednesday, October 05, 2016 02:11:14 Meta via Digitalmars-d wrote: > I'm currently writing up a DIP to propose removing `body` as a > keyword to allow it to be used for variable names, functions, > etc. I'm looking for examples and contexts where `body` would > normally be used as a variable,

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread Patrick Schluter via Digitalmars-d
On Wednesday, 5 October 2016 at 19:45:20 UTC, Basile B. wrote: On Wednesday, 5 October 2016 at 19:30:27 UTC, pineapple wrote: On Wednesday, 5 October 2016 at 19:02:02 UTC, Basile B. wrote: On Wednesday, 5 October 2016 at 18:41:02 UTC, Jacob Carlborg wrote: On 2016-10-05 19:14, Matthias Klumpp

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread Basile B. via Digitalmars-d
On Wednesday, 5 October 2016 at 19:30:27 UTC, pineapple wrote: On Wednesday, 5 October 2016 at 19:02:02 UTC, Basile B. wrote: On Wednesday, 5 October 2016 at 18:41:02 UTC, Jacob Carlborg wrote: On 2016-10-05 19:14, Matthias Klumpp wrote: Agreed - I have exactly the same problem with

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread pineapple via Digitalmars-d
On Wednesday, 5 October 2016 at 19:02:02 UTC, Basile B. wrote: On Wednesday, 5 October 2016 at 18:41:02 UTC, Jacob Carlborg wrote: On 2016-10-05 19:14, Matthias Klumpp wrote: Agreed - I have exactly the same problem with "version", which is also really common for, well, to hold a version

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 5 October 2016 at 19:02:02 UTC, Basile B. wrote: On Wednesday, 5 October 2016 at 18:41:02 UTC, Jacob Carlborg wrote: On 2016-10-05 19:14, Matthias Klumpp wrote: Agreed - I have exactly the same problem with "version", which is also really common for, well, to hold a version

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread Basile B. via Digitalmars-d
On Wednesday, 5 October 2016 at 18:41:02 UTC, Jacob Carlborg wrote: On 2016-10-05 19:14, Matthias Klumpp wrote: Agreed - I have exactly the same problem with "version", which is also really common for, well, to hold a version number of a component. Body is annoying too. But, can keywords

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 5 October 2016 at 18:41:02 UTC, Jacob Carlborg wrote: On 2016-10-05 19:14, Matthias Klumpp wrote: Agreed - I have exactly the same problem with "version", which is also really common for, well, to hold a version number of a component. Body is annoying too. But, can keywords

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread Jacob Carlborg via Digitalmars-d
On 2016-10-05 19:14, Matthias Klumpp wrote: Agreed - I have exactly the same problem with "version", which is also really common for, well, to hold a version number of a component. Body is annoying too. But, can keywords actually sanely be removed from the language without breaking the world?

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread Meta via Digitalmars-d
On Wednesday, 5 October 2016 at 17:51:07 UTC, Basile B. wrote: I'll be against this. Seriously is it the biggest problem you have with D ? Not by a longshot Also, what I guess is that your DIP will not propose "body" to be removed from the keyword list. You'll propose that "body" will be a

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread Jonathan Marler via Digitalmars-d
On Wednesday, 5 October 2016 at 17:17:32 UTC, default0 wrote: On Wednesday, 5 October 2016 at 17:14:04 UTC, Matthias Klumpp wrote: On Wednesday, 5 October 2016 at 16:57:42 UTC, Rory McGuire wrote: On Wed, Oct 5, 2016 at 5:32 PM, angel via Digitalmars-d < digitalmars-d@puremagic.com> wrote:

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread Basile B. via Digitalmars-d
On Wednesday, 5 October 2016 at 02:11:14 UTC, Meta wrote: I'm currently writing up a DIP to propose removing `body` as a keyword to allow it to be used for variable names, functions, etc. I'm looking for examples and contexts where `body` would normally be used as a variable, function name,

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread default0 via Digitalmars-d
On Wednesday, 5 October 2016 at 17:14:04 UTC, Matthias Klumpp wrote: On Wednesday, 5 October 2016 at 16:57:42 UTC, Rory McGuire wrote: On Wed, Oct 5, 2016 at 5:32 PM, angel via Digitalmars-d < digitalmars-d@puremagic.com> wrote: On Wednesday, 5 October 2016 at 02:11:14 UTC, Meta wrote: [...]

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread Matthias Klumpp via Digitalmars-d
On Wednesday, 5 October 2016 at 16:57:42 UTC, Rory McGuire wrote: On Wed, Oct 5, 2016 at 5:32 PM, angel via Digitalmars-d < digitalmars-d@puremagic.com> wrote: On Wednesday, 5 October 2016 at 02:11:14 UTC, Meta wrote: [...] Really, why do we need a _body_ ? We have pre-condition and

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread Rory McGuire via Digitalmars-d
On Wed, Oct 5, 2016 at 5:32 PM, angel via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > On Wednesday, 5 October 2016 at 02:11:14 UTC, Meta wrote: > >> I'm currently writing up a DIP to propose removing `body` as a keyword to >> allow it to be used for variable names, functions, etc. I'm

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread angel via Digitalmars-d
On Wednesday, 5 October 2016 at 02:11:14 UTC, Meta wrote: I'm currently writing up a DIP to propose removing `body` as a keyword to allow it to be used for variable names, functions, etc. I'm looking for examples and contexts where `body` would normally be used as a variable, function name,

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread rcorre via Digitalmars-d
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

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread Andrej Mitrovic via Digitalmars-d
On Wednesday, 5 October 2016 at 02:11:14 UTC, Meta wrote: I'm currently writing up a DIP to propose removing `body` as a keyword to allow it to be used for variable names, functions, etc. I'm looking for examples and contexts where `body` would normally be used as a variable, function name,

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread Jacob Carlborg via Digitalmars-d
On 2016-10-05 04:11, Meta wrote: - In web programming where "body" is a required tag in any valid HTML document. Ex: - It is a name commonly used for XML tags and/or attributes - Physics simulations as well in astronomical contexts ("planetary bodyies", etc.) - Video games, such as referring to

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread Sönke Ludwig via Digitalmars-d
Am 05.10.2016 um 05:04 schrieb ketmar: On Wednesday, 5 October 2016 at 02:11:14 UTC, Meta wrote: I'm currently writing up a DIP to propose removing `body` as a keyword to allow it to be used for variable names, functions, etc. I'm looking for examples and contexts where `body` would normally be

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-04 Thread ketmar via Digitalmars-d
On Wednesday, 5 October 2016 at 02:11:14 UTC, Meta wrote: I'm currently writing up a DIP to propose removing `body` as a keyword to allow it to be used for variable names, functions, etc. I'm looking for examples and contexts where `body` would normally be used as a variable, function name,

Examples Wanted: Usages of "body" as a Symbol Name

2016-10-04 Thread Meta via Digitalmars-d
I'm currently writing up a DIP to propose removing `body` as a keyword to allow it to be used for variable names, functions, etc. I'm looking for examples and contexts where `body` would normally be used as a variable, function name, alias, etc. This is what I have come up with off the top of