Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Port

Pages: 1 ... 234 235 236 237 238 [239] 240 241 242 243 244 ... 1041
3571
Interesting, can you post an example?

%a = "a" @ 1;
%obj.setName(7);
echo(5 / "foo");

3572
%stuff = "Stuff blah blah";
%pos[-1+%count++] = %stuff;

In TS, the result of this is %pos0 becoming "Stuff blah blah".
In basically every other language I've known ever, this would result in %pos-1 becoming "Stuff blah blah".

How so? Regardless of the order that the sides are evaluated in, practically every language every with a ++ operator that can be used in an expression increments it, then yields the new value. Sure, with your example, any decent language would throw an undefined variable exception, however looking apart from that:

%count++ => 1
-1 => -1

1 + -1 => 0

3573
Gallery / Re: Port makes a zombie mod.
« on: July 01, 2013, 05:24:44 AM »

3575
General Discussion / Re: DayB • 6/23/13 • New Poll!
« on: July 01, 2013, 04:36:12 AM »
Man, this is such a mess. I seriously have no idea what's going on.

3576
General Discussion / Re: DayB • 6/23/13 • New Poll!
« on: June 30, 2013, 02:27:40 PM »
When did I say I was coding for either of these mods?

3577
General Discussion / Re: DayB • 6/23/13 • New Poll!
« on: June 30, 2013, 10:28:56 AM »
If you're here to brag about Gravebreak you can leave, you already upset me several times.

I have no idea what Gravebreak even is. I was wondering if you wanted something like what I said for this.

3578
Off Topic / Re: The Port topic.
« on: June 30, 2013, 04:22:13 AM »
Today Port and I had a 3-hour-long conversation


very intriguing

No he doesn't.

+1

3579
Modification Help / Re: Finding the weapon that caused damage?
« on: June 29, 2013, 04:38:32 PM »
Second last one, IIRC.

3580
General Discussion / Re: DayB • 6/23/13 • New Poll!
« on: June 29, 2013, 04:37:04 PM »
Will this have material based footstep sounds and dynamic weather ambience? ;)

3581
Modification Help / Re: Finding the weapon that caused damage?
« on: June 29, 2013, 04:26:55 PM »
Player::damage, Armor::damage and GameConnection::onDeath have a damage type array index argument.

3582
Off Topic / Re: A new Valve ARG?! JUNE 29th!
« on: June 29, 2013, 12:23:14 PM »
Not a Valve ARG? Arg!

3583
Drama / Re: I cant loving believe this little boy.
« on: June 29, 2013, 12:11:21 PM »

3584
Modification Help / Re: [Resource] A* Implementation (Pathfinding)
« on: June 29, 2013, 10:58:44 AM »
I wonder if it would work much faster if it weren't combining strings with @ and instead used pseudo arrays.

It would be a bit faster for adding to lists, but extremely much slower for removing from them, which is why I didn't do that.

3585
Off Topic / Re: The Port topic.
« on: June 29, 2013, 10:45:50 AM »

Pages: 1 ... 234 235 236 237 238 [239] 240 241 242 243 244 ... 1041