Unlike C arrays, D arrays know their own length, accessible as arr.length for any array arr. Assigning to arr.length reallocates the array. Array accesses are bounds checked; code that enjoys risking buffer overruns can scare the pointer out of the array (by using arr.ptr) and then use unchecked pointer arithmetic.
1. Assigning to arr.length?!
2. Why on earth would you talk that way?
3. Andrei Alexandrescu... Isn't this guy the vice president of D or something? Does that mean his weird ideas are a direct influence on the language?
Name:
Anonymous2012-02-22 19:39
i would say that d is probably much more optimized in general. i mean it's compiled brah
I would in fact be interested in seeing the version Eich implemented in ten days. Seeing all the committee shit that happened, ECMAScript, etc., I'm sure the Eich-Ten-Days-Version is refreshing.
>>3 Unlike C arrays, D arrays know their own length, accessible as arr.length for any array arr.
In C++ Vectors know their own length as well as string class strings
Name:
Anonymous2012-02-25 21:54
This is not a troll thread. If there was ever a compiled language that could do server side web scripting to replace JS it would be D. I wonder if anyone has done this?
You're now chatting with a random stranger. Say hi!
Question to discuss: How do you know if your bi, gay, or st8?
You: Fuck a pumpkin You: Then put one of your fingers into a rooster's ass You: Then, if wind blows northeast you're bi, if wind blows south you're gay, else you're straight Stranger: nope Stranger: i didn't do any of that Stranger: and im bi You: You should! Stranger: i think you enjoy fucking pumpkins love You: They're warm and delicious You: Anyway, this is the method recommended by most serious IT enterprises You: It uses only scalable and multiple precision solutions like the pumpkin and the rooster's ass to deliver accurate information to the client in minimal time. The wind paradigm offers a specialized switch mechanism designed for specifically for this purpose. You: I dare you to name one better method of finding your sexual orientation.
You're now chatting with a random stranger. Say hi!
Question to discuss: Bu! You scared?
Stranger: Yeah You: Aaaaaaaaa Stranger: Hell scared You: Nearly got a heart attack, shithead! You: Don't do that again! Stranger: Oh, yeah Stranger: Absolutely Stranger: Are you a girl by any chance? You: Yes, why? Stranger: No well.. I did not intend to scare you by pulling you hard Stranger: So, sorry bout that You: It's fine, I don't mind :) Stranger: Well...you din't get hurt or something? Did you? You: I was just pretending Stranger: Oh..well...thankfully You: I'm all right Stranger: Even all i felt was something soft Stranger: So, I was rather like ..how could it hurt her? You: It didn't really hurt, it was... surprising Stranger: Oh well...welcome surprise I guess Stranger: Whatever.. You: Give me a virtual hug :D Stranger: Well...how tight? You: Child with teddy bear-level tight Stranger: Cos, well..You extend a few inches from the rest of your body Stranger: How old r u btw? You: 17 You: what about u? Stranger: I am 23 You: *hug ferociously* :3 Stranger: Oh..well.. I cant hug ferociously.. I would start moving my lips once I start feeling you up You: What does this mean? Stranger: This means.. Am gonna start kissing you..once I feel your breasts Stranger: Makes sense? [b]You: Don't get lewd, silly! Stranger: Well..okay... Stranger: I ll keep the distance then Stranger: Hugging ferociously is silly though Stranger: :D You: well I don't mind you feeling my breasts a little Stranger: Well...yeah.. a lil rub is not bad on a first date right? Stranger: Careless maybe? You: ye Stranger: Hmmm...but the problem pop up when the guy gets hard..what are you gonna do about it? You: Well it's natural, as long as you don't try to have sex with me, I can bear the erection :) Stranger: Cummon.. I would not force anything on you.. You: I know You: Just hold me tight :) Stranger: But I can feel some parts of you getting a lil hard too Stranger: Yeah.. You: Of course, that's natural too Stranger: well...aren't your wearing a bra? You: No, I don't need bras with those small breasts of mine Stranger: Cos, I can feel a pop up now Stranger: Oh well..they aren't small Stranger: They are in shape Stranger: ( Where are you from?) You: ( Belgium) You: ( Also, I'm actually a guy pretending to be a girl, feels really weird) Stranger: (oh fuck man... that was real BS) Stranger: Neva mind... get over it
>>28
I like your post. I read it twice. Then I contemplated the amusing realities of applying the term 66Belgian waffles99 to waffles that are not actually Belgian at all. I was thus provided with entertainment for as long a period of time as it took to write this reply.