Search found 3910 matches

by chili
April 3rd, 2020, 2:04 am
Forum: Everything
Topic: overloading an operator, why?
Replies: 2
Views: 34

Re: overloading an operator, why?

What, you mean you don't prefer this?

Code: Select all

add( multiply( a,b ),divide( c,subtract( d,e ) ) )
by chili
March 22nd, 2020, 2:38 pm
Forum: Everything
Topic: Auto cast an iterator into its base pointer type ?
Replies: 25
Views: 443

Re: Auto cast an iterator into its base pointer type ?

I feel like education in universities etc. have really failed in teaching OOP. They show you what a class is, what inheritance is, etc. etc., but there is far too little time spent on the why. So many people just end up creating classes because "that's what you do", without ever really knowing why t...
by chili
March 19th, 2020, 4:13 pm
Forum: Everything
Topic: Auto cast an iterator into its base pointer type ?
Replies: 25
Views: 443

Re: Auto cast an iterator into its base pointer type ?

Didn't you try and *form* a C habit for a while? :D
by chili
March 19th, 2020, 12:20 am
Forum: Everything
Topic: Auto cast an iterator into its base pointer type ?
Replies: 25
Views: 443

Re: Auto cast an iterator into its base pointer type ?

That's just life man. Progress is found more in the failures than the successes. I will say that template errors are cancer. You learn to get better at reading them (and compiler diagnostics in general), but it's never something that you grow to like. Luckily, C++20 Concepts should make this area a ...
by chili
March 16th, 2020, 10:07 am
Forum: Everything
Topic: Auto cast an iterator into its base pointer type ?
Replies: 25
Views: 443

Re: Auto cast an iterator into its base pointer type ?

Slidy wanted to go to the Discord but clicked on the wrong link :kappa:

Good post tho
by chili
March 12th, 2020, 3:54 am
Forum: Everything
Topic: Beginner C++ Game Programming DirectX Tutorial 8.0 solution
Replies: 4
Views: 230

Re: Beginner C++ Game Programming DirectX Tutorial 8.0 solution

I mean, if it works, that's the most important part. No real need to try and perfect everything when you're still learning new stuff all the time :) I will say I'm not sure about why you want/need poo1colScreenRight and why you're passing it in by reference in a bunch of places. Seems like there sho...
by chili
March 12th, 2020, 3:47 am
Forum: Everything
Topic: Destroying / clearing a "recursive" vector ?
Replies: 12
Views: 399

Re: Destroying / clearing a "recursive" vector ?

Oh shit that's dope. Playing exa also started giving me ideas about making something like that (as if I don't already have enough on my plate as it is). Would be interested in seeing this when you got some sort of playable demo going :D
by chili
March 11th, 2020, 4:57 pm
Forum: Everything
Topic: Beginner C++ Game Programming DirectX Tutorial 8.0 solution
Replies: 4
Views: 230

Re: Beginner C++ Game Programming DirectX Tutorial 8.0 solution

It doesn't let me view the file cuz it's too big :D
by chili
March 11th, 2020, 4:54 pm
Forum: Everything
Topic: Destroying / clearing a "recursive" vector ?
Replies: 12
Views: 399

Re: Destroying / clearing a "recursive" vector ?

Yeah, my instinct tells me that something like vector isn't going to like it due to incomplete type...
by chili
March 10th, 2020, 7:40 am
Forum: Everything
Topic: Inactivity
Replies: 1
Views: 225

Re: Inactivity

what is it with you and that image