« first day (856 days earlier)      last day (4074 days later) » 

@BartekBanachewicz Yeah, that's probably works better :)
 
@GamesBrainiac The code that's being run is in the {} section?
 
@GamesBrainiac dude. Please, just read. It's a trivial example.
 
The [] just tells the compiler which variables from the enclosing scope (function, globals, etc) to make available to the code in the {} section
 
@BartekBanachewicz : For you maybe, but this is the first time I'm look at lambda, and its difficult
 
3:02 PM
@GamesBrainiac because you didn't even try to look at any tutorial/doc/ref/whatever
 
@R.MartinhoFernandes Transparent, black ogonek
@GamesBrainiac that's probably the worst one you could pick ,but ok
 
But, if you take a look at the MS VS example, they include the int
 
in the []
 
3:03 PM
@Collin Only local variables or this ever need to be captured.
 
@GamesBrainiac but it's optional. The code still parameters as a normal function
 
@LucDanton I suppose you could capture a global by value
although your globals should probably never be non-const
 
Xeo
@Collin I don't think you actually can capture anything outside the local scope.
 
@Collin : Hope you can be here, for a little while long, I need to experiment a little bit
before I get it
 
@Collin I mean from a language standpoint. Anything else is not allowed.
 
3:04 PM
Oh, never realized that
 
I wish everything was as simple as python :(
 
Why not use Python then?
 
@BartekBanachewicz Can you make me a 16x16-sized version (probably with fatter parens)? The browser scales that terribly.
 
user142019
Haskell is simpler.
 
No point trying something else if you want it not to be something else.
 
3:05 PM
@LucDanton : My idiot teacher enforced C++, without even teaching it to us proper
 
I see.
 
Now, that I look at it, its better to learn Data Structures with a language you are familiar with
rather than one that is new
C++ is not a trifling matter, you need a good understanding of it to use it properly
 
I didn't know that
 
user142019
Even then you fail.
 
user142019
Because C++ is FUBAR.
 
3:07 PM
FUBAR?
 
Just a different orthograph of foobar.
 
Fucked Up Beyond All Repair.
@Cicada lol
 
@R.MartinhoFernandes I hate you.
 
@R.MartinhoFernandes : LOL
 
@R.MartinhoFernandes you should hire me
 
3:08 PM
@Collin : [=] what does that do?
 
You could've answered "Fear, Uncertainty, But Also Rice" or something
 
Why an = sign of all things?
 
@GamesBrainiac Read the capture clause section here: msdn.microsoft.com/en-us/library/dd293603.aspx
 
Please go read a tutorial on lambdas
 
I'm doing it wrong!
2
 
3:09 PM
Yes you are.
 
I don't like going to the dentist.
 
@Collin : Thanks collin, sorry for bein such an idiot
 
user142019
> I'm reading a book about antigravity. It's impossible to put down.
 
user142019
LOL
 
@BartekBanachewicz Does that mean I will have to do it myself?
 
3:11 PM
@R.MartinhoFernandes no, I'm trying atm but it isn't that easy
 
hmm
is it a good thing that the compiler does not check the validity of functions which are not called?
 
@DeadMG How so?
f() { FUCK YOU I DON'T CARE IF THIS IS NOT A STATEMENT; }
Main() {}
// compiles!
This?
 
user142019
@DeadMG no.
 
user142019
What about libraries.
 
@R.MartinhoFernandes Nah, it still has to pass the parser.
 
3:16 PM
@DeadMG You mean, like how uninstantiated function templates in C++ can somehow compile even if filled with crap?
 
user142019
(Unless exporting functions means using them.)
 
f() { blah() }
Main() {}
// compiles!
@DeadMG This, then?
 
give or take (you're missing a semicolon)
 
@DeadMG I have this problem with python sometimes, it bothers me I can't get any feedback on the validity of some code until I actually hit the condition that runs it
 
@EtiennedeMartel That's mostly just MSVC's broken nonexistent two-phase lookup.
 
3:17 PM
@Zoidberg It does (although I don't support exporting yet).
 
@R.MartinhoFernandes Aaah.
 
user142019
@DeadMG ohlol :P
 
user142019
But you know.
 
user142019
If you do what you're talking about.
 
user142019
3:18 PM
Every function can be generic.
 
user142019
And every parameter can be of any type.
 
@BartekBanachewicz Looks cool. Thanks.
> Logo by bananu, based on ideas by Cat Plus Plus.
 
user142019
Coz hey, we don't compile it anyway if it's not used.
 
@R.MartinhoFernandes 16x16 is damn small. Are you sure it should be it, not 32x32?
 
@Zoidberg Which was half the fuckin' point.
 
user142019
3:19 PM
xD
 
This fine for credits? @Bartek @Cat
 
@R.MartinhoFernandes the "7" stays there
 
@BartekBanachewicz Standard issue favicon. I don't make this shit up :/
@BartekBanachewicz Oh, k.
 
@R.MartinhoFernandes I pixelarted it.
@R.MartinhoFernandes however dumb that might look...
 
in fact
 
3:20 PM
@Zoidberg : LOL, that was an awesome reply
 
I just finished implementing return statements, to run for return type inference.
 
@R.MartinhoFernandes do you want the .psd too?
 
@BartekBanachewicz Nah, it's ok. The big png and the enhanced small one are enough.
 
user142019
In Zoidlang a function returns the result of the last expression statement if the body ends with an expression statement. You can also use explicit return of course.
 
(I don't have Photoshop anyway)
 
3:21 PM
@R.MartinhoFernandes : Gimp?
 
@R.MartinhoFernandes well, if you shall need to reproduce it, the brackets are Times New Roman Bold, the ogonek is from Arial ą
@GamesBrainiac gimp sucks
 
@BartekBanachewicz : Its free, so who cares?
PS is really expensive
 
@GamesBrainiac If the shit was free would you take it?
 
@BartekBanachewicz lol, you could have used an isolated ogonek fileformat.info/info/unicode/char/2db/browsertest.htm
 
I don't remember paying anything for PS
 
3:22 PM
Gimp is hardly usable at all.
 
user142019
io := import io;

fn main() io.print("Hello, world!")
 
@BartekBanachewicz : It not shit, you can do basic things with it
 
@R.MartinhoFernandes I know :) I figured it out too late. Still. You can reproduce it as svg in (free) inkscape, for instance
 
@Zoidberg io = import io???
 
user142019
FCUK MY GRAMMAR IS FUCKING AMGIGUOUS.
 
user142019
3:23 PM
@Cicada import is an expression.
 
@Zoidberg Pwned.
 
@Zoidberg Well it sucks
 
user142019
Oh no wait it isn't.
 
aw
 
user142019
@Cicada you suck!
 
3:23 PM
@GamesBrainiac like what
 
user142019
Nah I should make import a definition.
 
user142019
So you can do this:
 
@Zoidberg Seeing the same identifier on both sides of an assigment is a like putting a fork in my eye
 
@BartekBanachewicz : Make a basic logo, do some simple editing on an image
 
user142019
public class Foo {
    import IO; // io only imported in this scope
}
 
3:23 PM
I've made a logo with it once
 
@GamesBrainiac that's... cool, I guess
 
user142019
@Cicada put the fork in both eyes so it's on both sides of your nose.
 
I'm not a professional graphic artist, that's why I use Photoshop
 
btw
 
user142019
vat
 
3:24 PM
I decided to start collating my tutorials into a manuscript.
want to see how close they are to making a decent introductory book
 
@BartekBanachewicz : I guess, its what you need it for. If you want more advanced stuff, and you want something that will not crash attempting to do it
Then PS is the choice for you
 
@Zoidberg You're a horrible person
 
@GamesBrainiac I am doing basic stuff in PS
Because it's the best raster graphics editor on this planet.
 
@BartekBanachewicz : Then give gimp a shot, it aint that bad
 
@GamesBrainiac It's fucking terrible
 
3:25 PM
@BartekBanachewicz : No it aint. Which version did you use?
 
It's FUBAR, you know that acronym already
 
user142019
I should define the grammer before writing the AST classes.
 
@GamesBrainiac all are equally bad
 
Paint.net is great
 
might help
 
3:26 PM
I think FUBAR is a really awesome way of putting it
 
@AndreiTita everything is better than GIMP
heck, Windows Paint is better than GIMP
 
user142019
I added virtual functions, getters and setters.
 
@BartekBanachewicz : Look, its loads of people's hard work. It would be horrible to dismiss it
 
@GamesBrainiac that's too bad they wasted all this work
 
@GamesBrainiac lol
 
3:27 PM
Blender is another, similar example
 
that's a terrible argument
 
user142019
And typeof (think decltype).
 
@BartekBanachewicz : I agree that blender sucks. But GIMP has become better. It has good tablet support too.
I know PS is way better, but I would not dismiss GIMP just yet
 
user142019
I don't understand virtual inheritance.
 
@GamesBrainiac lol. Read it again.
 
3:29 PM
@BartekBanachewicz : nvm
 
@BartekBanachewicz K, I pushed the new icon flamingdangerzone.com/ogonek. You are on the small print on the bottom left.
 
user142019
I'll make singletons UB in Zoidlang.
 
@R.MartinhoFernandes The icon is terrible.,
 
I like it.
 
it's fucking invisible.
very light yellow on a solid white background?
 
3:30 PM
I wonder if I shouldn't have added the background
 
user142019
And in my implementation singletons will randomly change memory and segfault and whatnot.
 
I can't see anything to like.
 
I finally get lambdas! :D
 
@DeadMG The background is transparent, so the solid white is yours :P
 
yahoooo! :D
@Collin : Thanks for all the help man
 
@Zoidberg This language is gonna be an even bigger hit than D.
 
@Zoidberg that's so childish
 
user142019
@EtiennedeMartel xD
 
> constructor
> destructor
> fn
makes sense
 
@R.MartinhoFernandes Point's the same.
 
user142019
3:33 PM
@EtiennedeMartel oh lol I read "is gonna be even bigger shit than D" XD
 
@Zoidberg why the hell is Unit keyword uppercase?
@Zoidberg that's what he meant
 
user142019
Because it's a type name.
 
@Zoidberg That's what I meant.
 
Who's using clang vs. gcc?
 
user142019
I don't use either. I use GHC.
 
3:34 PM
@EtiennedeMartel Also what I read.
@BrettHale I use both and MSVC too.
 
@BrettHale I use ICC
 
@Zoidberg - I think you mean THC.
 
@BrettHale it's haskell compiler
 
user142019
@BrettHale same effect: makes you lazy.
 
@Zoidberg outstanding sir.
 
user142019
3:36 PM
Except THC has side-effects.
 
@Zoidberg - unless you buy the stuff with 'const'.
 
The heck's THC?
 
Tetrahydrocannabinol ( ; THC), also known as delta-9-tetrahydrocannabinol (Δ9-THC), is the principal psychoactive constituent (or cannabinoid) of the cannabis plant. First isolated in 1964, in its pure form, by Israeli scientists Raphael Mechoulam, Yechiel Gaoni and colleagues at the Hebrew University of Jerusalem, it is a glassy solid when cold, and becomes viscous and sticky if warmed. A pharmaceutical formulation of THC, known by its INN dronabinol, is available by prescription in the U.S. and Canada under the brand name Marinol. An aromatic terpenoid, THC has a very low solubility i...
 
user142019
@R.MartinhoFernandes the active substance in weed.
 
Reason I asked - I see the pace of development and clean code base of clang. I think it will sink gcc long term. Still, a lot of target platforms available for gcc.
 
3:40 PM
@Zoidberg pot doesn't make you lazy directly, it makes you realise that just taking the time to appreciate what is going is more important then anything else... dude
 
How do you use a template with lambda functions?
 
@GamesBrainiac Wait until next C++
 
user142019
Overly broad question.
 
like this: [=] ( T & name1 )
template <class T>
 
@GamesBrainiac C++14
 
3:42 PM
things to care about when looking at compiler, in order of importance.
Conforming to spec'
Optimisations
Speed
Ease of use
What the code looks like
 
dammit
 
user142019
@GamesBrainiac impossibru.
 
@thecoshman - I spent the 90's in Adelaide (Australia). It was actually legal to grow up to three plants on your own property for personal use.
 
in the meantime, is there a workaround for this?
 
@GamesBrainiac no.
 
3:42 PM
:(
@Zoidberg : You were right. C++ is FUBAR
 
People talk about 'D'. It started out with good intentions, but it's slowly reinventing the wheel with each revision. Complexity arises for a reason...
 
@DeadMG K, you may have a point. What if I added outlines to the bananas?
 
maybe
but they might still be too light.
@BrettHale D was bad from the beginning.
@GamesBrainiac Nah, they had good reasons (at the time) for not adding it.
 
@R.MartinhoFernandes I agree with the dog, that is a terrible logo
 
but now those reasons are gone, so polymorphic lambdas will be in C++14 or (more likely) C++17.
 
3:45 PM
@DeadMG : So, do you know a workaround for this?
 
what is it supposed to be?
 
@GamesBrainiac Nope.
 
1 hour ago, by Cat Plus Plus
It's an ogonek with two bananas!
 
you have to use a functor with a templated operator().
 
@R.MartinhoFernandes it's a pair of yellow turds is what it is
 
3:47 PM
@melak47 You can "convert" a pointer into a reference by dereferencing the pointer :)
 
@thecoshman There's no POO, PILE OF though.
 
Ell
error: Your local changes to the following files would be overwritten by checkout:
Engine/src/ModelCookerVBO.cpp
Please, commit your changes or stash them before you can switch branches.
Aborting
 
@FredOverflow you can't dereference the COM objects..
 
@melak47 Do you have a pointer or not?
 
@Ell Git sucks.
 
3:48 PM
@Ell so commit or stash them?
 
@melak47 Yes, you can.
 
@thecoshman Your mind might need tuning.
 
there's no reason you can't have an ID3D11Device&
 
Ell
Ima try and stash
 
git's trying to keep you from destroying your work
 
3:48 PM
@Ell $ git stash
 
@FredOverflow to an abstract type..
 
When I don't need under-the-hood speed, etc., I'm very interested in the development of the Go language.
 
Or commit.
 
@R.MartinhoFernandes you logo does need tuning
 
or reset it if you know you don't want your local changes
 
3:48 PM
@thecoshman I have a logo?
 
Ell
I did git stash and redid checkout and it still says that erro o.O
 
crap damn it, there is a reason I got the damn keyboard control do hickey
 
@melak47 Look, I don't know DirectX best practices. If having pointers flying around is the normal thing, by all means return a pointer.
 
@thecoshman Your aim needs tuning!
:P
 
@FredOverflow there are none
 
3:49 PM
Looks fine to me.
 
@R.MartinhoFernandes Looks like antlers.
 
@thecoshman best practices?
 
now that I can actually see it
 
@R.MartinhoFernandes Looks like kidneys to me.
 
@EtiennedeMartel That's fine too.
 
3:50 PM
all I can say is, "What the fuck is that".
 
@DeadMG a pair of turds
 
It doesn't have to be anything!
 
Ell
Looks like bananas
 
tbh
 
Ell
or a fly
 
3:50 PM
It has a recognisable shape, even if some recognise that as some turd shape... whatever.
 
@DeadMG Stop whining.
 
skip the bananas and just have an ogonek in the center.
 
@R.MartinhoFernandes parens made to look like a stethoscope?
 
@R.MartinhoFernandes The Haskell Compiler?
 
@R.MartinhoFernandes what was wrong with the old thing?
 
3:51 PM
@thecoshman I didn't like it.
 
@DeadMG Those are supposed to be bananas? Programmer art...
 
Use a fucking pile of poo already.
 
@FredOverflow those are ( and ), respectively
 
@R.MartinhoFernandes at least it didn't suck
 
Folks, I need some help. I tried overloading the < operator for a class
But, it gives me an error saying that there is a problem
It can accept only one argument
 
@GamesBrainiac First, read this. Second, what kind of problem?
 
there's a sample operator on that page.
 
Been using C++ for a long time, but the complexity with C++11 is bordering on the insane. I'm having one of those days where I realize some things just shouldn't be used. Shouldn't be part of a language. If only 10 people on the ISO committee understand the full legalese of the language - it's time to reconsider. Need more actual developers on their committee perhaps? Not professional authors?
 
330
Q: Operator overloading

sbiWhat are the basic rules and idioms for operator overloading in C++? Note: The answers were given in a specific order, but since many users sort answers according to votes, rather than the time they were give, here's an index of the answers in the order in which they make most sense: The Gener...

 
@GamesBrainiac If you overload operator< as a member function, then you already have one operand (*this), so you only need one further argument for the second operand. If you overload operator< as a free function, you need two arguments for both operands.
 
3:53 PM
It's all there.
 
@BrettHale I don't think it's really a problem.
 
@BrettHale u mad?
 
Also, I feel like quoting this:
4 hours ago, by sehe
@GamesBrainiac I know. That's what you think you need. See you next time you fail to parse an error message...
 
@FredOverflow : That makes perfect sense
 
@GamesBrainiac if you want to do a compare the takes a left and right, you need to make it a static function. What you really want to do is just take a right hand opearnd, and have the left on be the 'this'
 
3:53 PM
@BrettHale What's the problem? There's nothing wrong with the complexity of C++11 features (although some of them are decidedly broken).
 
Martinyo the Archivist.
 
@Ell what are you trying to do, actually?
 
@EtiennedeMartel it's 'ho' not 'yo'
 
@thecoshman lol
 
@thecoshman Pronounced "yo".
 
Ell
3:55 PM
@BartekBanachewicz get to the develop-2 branch (You don't have to waste your time with me, I'm n00b)
 
@BartekBanachewicz - yeah, a little. Just been running up against some arcane aspects of the language, and I need to vent, and bitch a little.
 
@Ell can't you just download it as zip?
 
Nonononono.
 
Ell
ahah I've done it
 
@thecoshman It was a joke.
 
3:55 PM
@BrettHale But which aspects?
 
You English speakers don't know how to pronounce that. (it's not "yo")
 
@DeadMG is it realy?
 
Étienne was trying to annoy me. (see? I can piss you off too!)
 
Ell
@R.MartinhoFernandes "Mar-tee-no"?
 
@R.MartinhoFernandes Cet esti d'accent...
 
3:56 PM
Polish "ń" is close, i think.
 
@EtiennedeMartel :P
 
@R.MartinhoFernandes I just read it as a very English 'Martin'
 
@BartekBanachewicz It's the same, actually
 
@R.MartinhoFernandes :)
 
@EtiennedeMartel my lord, I think I understand that :O
 
Ell
3:56 PM
I just read it in a Spanish accent :L
 
@BartekBanachewicz We have a Polish on sales, and she confirmed it.
 
@EtiennedeMartel Speaking of, any series worth watching from Quebec? The little I've seen was awesome.
 
@Ell gz. keep me posted
 
@LucDanton Anything by Podz, really. Especially Minuit le Soir and 19-2.
 

« first day (856 days earlier)      last day (4074 days later) »