Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,435,171
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 04-19-24 08:50 AM
Guest: Register | Login

0 users currently in The Landfill | 3 guests

Main - The Landfill - Words of our overlord New thread | Thread closed


knuck
Posted on 09-11-08 11:06 PM Link | Quote | ID: 90335


Spiny
Level: 53

Posts: 438/586
EXP: 1109405
Next: 47714

Since: 07-22-07
From: BR

Last post: 4629 days
Last view: 4478 days
He requires us to postcount++. I hereby declare this thread the postcount++ place.

chungy
Posted on 09-11-08 11:08 PM Link | Quote | ID: 90337


Rex
Level: 51

Posts: 245/533
EXP: 959761
Next: 54177

Since: 08-23-07
From: Las Vegas

Last post: 4437 days
Last view: 4239 days
no u

knuck
Posted on 09-11-08 11:09 PM Link | Quote | ID: 90338


Spiny
Level: 53

Posts: 439/586
EXP: 1109405
Next: 47714

Since: 07-22-07
From: BR

Last post: 4629 days
Last view: 4478 days
Please, my good sir (and chap), would you please post it before I do? Much appreciation!

MathOnNapkins
Posted on 09-12-08 12:47 AM Link | Quote | ID: 90340


Super Koopa
Level: 62

Posts: 512/842
EXP: 1934416
Next: 50270

Since: 02-19-07
From: durff

Last post: 4481 days
Last view: 4004 days
Shame on you knuck. You ought to know that ++postCount (with a capital 'C' too!) is best practice unless you really need to use postfix operator. (Note that I am conciously avoiding the pun "post increment post increment".

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

blackhole89
Posted on 09-12-08 12:49 AM Link | Quote | ID: 90341


The Guardian
Moloch whose eyes are a thousand blind windows!
Level: 124

Posts: 1913/4196
EXP: 21520783
Next: 315818

Since: 02-19-07
From: Ithaca, NY, US

Last post: 464 days
Last view: 77 days



Sorry, but I think that naming convention reeks of Java and doesn't look at all.

Though, if I was to code anything relevant, it probably would wind up as ++lol.

____________________



knuck
Posted on 09-12-08 12:52 AM Link | Quote | ID: 90342


Spiny
Level: 53

Posts: 440/586
EXP: 1109405
Next: 47714

Since: 07-22-07
From: BR

Last post: 4629 days
Last view: 4478 days
I forgot the difference between postcount++ and ++postcount. Can you enlighten me?

blackhole89
Posted on 09-12-08 12:55 AM Link | Quote | ID: 90343


The Guardian
Moloch whose eyes are a thousand blind windows!
Level: 124

Posts: 1914/4196
EXP: 21520783
Next: 315818

Since: 02-19-07
From: Ithaca, NY, US

Last post: 464 days
Last view: 77 days



//postcount==1
int a,b;
a=postcount;
b=++postcount;
//a==1, b==2,postcount==2

//postcount==1
int a,b;
a=postcount;
b=postcount++;
//a==1, b==1,postcount==2


That about sums it up.

____________________



knuck
Posted on 09-12-08 12:56 AM Link | Quote | ID: 90344


Spiny
Level: 53

Posts: 441/586
EXP: 1109405
Next: 47714

Since: 07-22-07
From: BR

Last post: 4629 days
Last view: 4478 days
So just like lambda functions, they're useless? Got it!

blackhole89
Posted on 09-12-08 01:01 AM Link | Quote | ID: 90345


The Guardian
Moloch whose eyes are a thousand blind windows!
Level: 124

Posts: 1915/4196
EXP: 21520783
Next: 315818

Since: 02-19-07
From: Ithaca, NY, US

Last post: 464 days
Last view: 77 days



Not any more useless than having operator++ when you can go "a=a+1" is to begin with.

Think while(*ptr) sendchar(*(ptr++));; with a prefix-++, you would skip the character ptr points at initially.

____________________



knuck
Posted on 09-12-08 01:02 AM Link | Quote | ID: 90347


Spiny
Level: 53

Posts: 442/586
EXP: 1109405
Next: 47714

Since: 07-22-07
From: BR

Last post: 4629 days
Last view: 4478 days
That makes no sense i'm googlin'

MathOnNapkins
Posted on 09-12-08 03:47 AM Link | Quote | ID: 90369


Super Koopa
Level: 62

Posts: 513/842
EXP: 1934416
Next: 50270

Since: 02-19-07
From: durff

Last post: 4481 days
Last view: 4004 days
Posted by blackhole89
Sorry, but I think that naming convention reeks of Java and doesn't look at all.

Though, if I was to code anything relevant, it probably would wind up as ++lol.


That sort of naming convention has been around since long before Java even existed, I don't know where you got that idea. Sometimes I like_to_use underscores and all lower caps instead. It really depends on how I feel on any given day.

____________________
Zelda Hacking Forum
hobbies: delectatio morosa

knuck
Posted on 09-12-08 03:49 AM Link | Quote | ID: 90370


Spiny
Level: 53

Posts: 443/586
EXP: 1109405
Next: 47714

Since: 07-22-07
From: BR

Last post: 4629 days
Last view: 4478 days
Java lol vm
YOU FAIL MON!!!!!@2

Tyty
Posted on 09-12-08 03:58 AM Link | Quote | ID: 90373


Vire
Jizz Danmaku
Level: 77

Posts: 560/1381
EXP: 4043710
Next: 147419

Since: 04-20-07
From: Canada

Last post: 4440 days
Last view: 3712 days
This is fucking ridiculous.

____________________

knuck
Posted on 09-12-08 03:59 AM Link | Quote | ID: 90374


Spiny
Level: 53

Posts: 444/586
EXP: 1109405
Next: 47714

Since: 07-22-07
From: BR

Last post: 4629 days
Last view: 4478 days
Who the hell do you think I am?

KP9000
Posted on 09-12-08 04:00 AM Link | Quote | ID: 90375


Boomboom

Level: 90

Posts: 421/1975
EXP: 6949424
Next: 239185

Since: 02-19-07

Last post: 3573 days
Last view: 3197 days


Seems more fitting here, I agree.

____________________

Tyty
Posted on 09-12-08 04:01 AM Link | Quote | ID: 90376


Vire
Jizz Danmaku
Level: 77

Posts: 561/1381
EXP: 4043710
Next: 147419

Since: 04-20-07
From: Canada

Last post: 4440 days
Last view: 3712 days
On the contrary. I feel I found the perfect place for it.

____________________

Main - The Landfill - Words of our overlord New thread | Thread closed

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.023 seconds. (323KB of memory used)
MySQL - queries: 97, rows: 121/122, time: 0.015 seconds.