« first day (945 days earlier)      last day (4002 days later) » 

8:00 PM
@EtiennedeMartel Define creation of a language, then...
 
@Jeffrey When you can do stuff with it.
 
@Jeffrey Sounds right
 
@EtiennedeMartel We have very different definitions then...
 
Ell
@BartekBanachewicz I'm so sorry :(
 
@Rapptz well yeah.
@Ell that's just too fucking bad. Noone knows if it was a suicide or an accident
 
8:03 PM
For me a language is created when a specification for it exists. For instance a language can exists without an implementation of it. But a language, as well as an implementation, cannot exists without the specification.
 
Then I see you have a... theorical approach to language design.
 
we will remember him as a true friend. These things just... happen, I guess.
 
Ell
@BartekBanachewicz That's really unfortunate :( make sure to have yourself a beer and look to the future
 
well okay, no point spamming you about it.
@Ell got both already, thanks mate.
 
@BartekBanachewicz My condolences :(
 
8:04 PM
see ya on monday or something.
@Borgleader thanks.
 
user142019
Hurray!
 
user142019
Ø macros work!
 
@EtiennedeMartel Yeah pretty abstract...
 
user142019
And if works too!
 
so not if works?
 
8:06 PM
not is not a keyword!
 
user142019
I have no keywords at all.
 
@typ1232 they are not probably talking about C++
 
user142019
if isn't a keyword either; it's just a built-in macro.
 
@Jeffrey We arent
 
please talk about c++ then :)
 
user142019
8:07 PM
Okay, everything starting with __ is reserved.
 
We actually never do
@rightfold __ prefixed things are just ugly
 
user142019
@Jeffrey You'll never need them unless you're implementing the standard library.
 
Why not call the room "lounge" then? Where is the c++?
 
Apr 29 at 0:10, by Etienne de Martel
@Johann The name of the room is Lounge<C++>. Notice the order. Lounge first, C++ second.
 
user142019
For example, for calling __if which is built-in function.
 
8:09 PM
@typ1232 It is.
 
@EtiennedeMartel That quote should be put into the newbie hints page.
inside <h1> or something...
 
@R.MartinhoFernandes hello :)
 
@R.MartinhoFernandes So, since I watched Blade Runner, does that mean you'll watch some MLP?
 
@rightfold so if is just syntactic sugar for __if?
 
user142019
No.
 
8:11 PM
@EtiennedeMartel Ohhh you watched Blade Runner? Did you like it?
 
I give up.
 
@typ1232 Yes it is
 
@Borgleader Not sure. I enjoyed it. But I wouldn't say I liked it.
 
@EtiennedeMartel When I get some free time.
 
It's one of those "well done, but not my style".
 
8:12 PM
Oh I see
 
I should go out, but my bed is so cozy right now
Right after dinner
 
user142019
@Jeffrey if is a macro; something like (defmacro if (c t f) (__if c t f)).
 
I'm still bored. :(
 
Unbore thyself
 
8:14 PM
I am craving some brownies.
 
@rightfold what is that Lisp?
 
ohhh brownies sound yum
 
user142019
Yes Ø is a Lisp.
 
I see
Ø is the name of the language?
 
user142019
8:15 PM
Ja.
 
@Rapptz fake
 
Why are you playing the nonconformist part?
 
Ell
I crave brown baths
 
@Rapptz I was this close to making a brony joke. I hope you realize how much effort I'm putting in this.
@rightfold Uh, so you took the easy route.
 
@typ1232 I'm not sure how to reply to this :D
 
8:17 PM
@typ1232 lol what
 
i am refering to the "not" "and" and "or" keywords in ideone :D
not the brownies..
 
This is a list of operators in the C and C++ programming languages. All the operators listed exist in C++; the fourth column "Included in C", dictates whether an operator is also present in C. Note that C does not support operator overloading. When not overloaded, for the operators &&, ||, and , (the comma operator), there is a sequence point after the evaluation of the first operand. C++ also contains the type conversion operators const_cast, static_cast, dynamic_cast, and reinterpret_cast. The formatting of these operators means that their precedence level is unimportant. Most of the o...
look at this list, theyre all keywords
 
@typ1232 they are all keywords
 
@typ1232 Compile the program yourself then
 
welp, learned something new. needed to include iso646.h tough
 
8:21 PM
Not in C++. Only in C.
 
Ell
what to call free function getting the string name of an enum?
 
In C++ they're keywords, in C they're just macros.
 
@Rapptz Are they macros?
 
In C yeah
 
using msvc i need to include it in c++
 
8:22 PM
wow
 
@typ1232 I don't.
 
error C3861: 'not': identifier not found
 
What compiler are you using?
 
msvc12
 
Compiles fine on rise4fun
8
A: C++ alternative tokens?

Michael BurrMSVC supports them as keywords only if you use the /Za option to disable extensions; this is true from at least VC7.1 (VS2003). You can get them supported as macros by including iso646.h. My guess is they believe that making them keywords by default would break too much existing code (and I ...

Meh, MSVC sucks.
 
8:27 PM
The ANSI C specification makes allowance for these keywords as preprocessor macros in the header file iso646.h. For compatibility with C, C++ provides the header ciso646, inclusion of which has no effect.
 
Xeo
@Rapptz alternative tokens suck
 
@Xeo You suck.
 
Everybody suck
 
I like alternative tokens
not digraphs and trigraphs but I like those
I don't use them though
 
Xeo
The fuck, stop flagging
Oh please
 
8:29 PM
Who is flagging?
 
Xeo
Whoever is flagging, just gtfo
Like, right now
sigh
 
wasn't me
 
#define if whether
 
is frivolous flagging an offence on SO?
 
yes, afaik
 
Xeo
8:31 PM
@Rapptz I don't like them because they take away useful names for algorithms :/
@TomW It's just plain annoying. Every 10k user across all chatrooms gets to see them.
 
What got flagged? =/
 
I hope a moderator bans the flagger so that we can continue to be foul mouthed racists
 
Ell
Can I overload << (ostream&, MyEnumClass) for my enum? I'm getting multiple definitions. Does c++ make one for me or something?
 
@Xeo Like what? and(mylistofbools)?
 
Xeo
mpl::and
 
8:33 PM
@Ell Did you forget an inline?
 
Ell
I didn't know I needed an inline :P
 
If it's in a header you do. ODR and all that good stuff.
 
Oh right
I just capitalise the A
i.e. And<...>
 
@Borgleader good question, skimmed transcript and there is nothing to flag, maybe misclick?
 
Xeo
I do that for aliases
for the metafunctions themselves I use snake_case
 
8:34 PM
#define and and_ seems like it would actually be useful
 
Xeo
ew
 
#define and ___and
 
7
Q: C++ preprocessor #define-ing a keyword. Is it standards conforming?

Ken BloomHelp settle the debate that's going on in the comments at this question about bool and 1: Can a standards-conforming C++ preprocessor allow one to use #define to redefine a language keyword? If so, must a standards-conforming C++ preprocessor allow this? If a C++ program redefines a language ke...

 
tripple prefixing underscores are fine right?
 
I've always wondered this and assumed you couldn't
 
Xeo
8:35 PM
no
 
I hope no standard library uses and
 
It's explicitly forbidden according to Johannes
@James C++0x's 17.6.3.3.1/2 says "A translation unit shall not #define or #undef names lexically identical to keywords.", thereby reserving those names. And 17.6.3.3/2 says "If a program declares or deļ¬nes a name in a context where it is reserved, other than as explicitly allowed by this Clause, its behavior is undefined.", so I think it's undefined behavior. C++0x got rid of "... that includes a header ...", so it certainly seems to have a different ruleset. — Johannes Schaub - litb Dec 26 '10 at 14:24
I don't know if he's right though. Too lazy to check
 
@Pubby It's actually in the standard I learned. Language extensions just remove it.
at least msvc
 
WTF, gmail doesn't allow zip files with .exe files inside as attachments?
 
8:40 PM
change extension to .txt?
 
I ran into that too.
 
Yeah you can't do it :S
 
@melak47 most email providers dont, just change the extension
 
user142019
ITT: Gmail is retarded.
 
dropbox
 
8:41 PM
problem is the email already went out to everyone except two people
 
@rightfold its a security thing. Retarded or not
 
@TonyTheLion probably as secure as renaming the file to scr,com,pif will work ;)
 
I wonder if I should try to make a screensaver again.
 
oh screensavers
I haven't had a screensaver in forever
I just turn off my screen when I'm done
 
8:48 PM
@Borgleader lol, I went afk shortly after my last message.
 
4
Q: Variable name 'xor' results in internal compiler error 'segmentation fault'!

Wolfgang PlaschgCompiling this code int main(int argc, char **argv) { int xor = 0; } via g++ main.cpp results in: internal compiler error: Segmentation fault with i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5659). Renaming the variable removes the error. Question: Is gcc from A...

:D
 
user142019
GCC 4.2.
 
0
Q: Templates from C++ in C

Andreas T I am trying to recreate some classes from the C++ standard library in C. For example, the std::pair class. To emulate templates, I used macros of course. Here is an example of how it looks like: #define _TEMPLATE_PAIR_STRUCT(T1, T2, TNAME, STRNAME) \ typedef struct { ...

what
simulating C++ templates with macros in C
 
not news really
 
why not just use c++ ._.
 
8:52 PM
@DeadMG not something I had ever seen before
so it was news to me
 
Awwwwwwwwwww... — H2CO3 4 mins ago
lol
 
Hey guys.
 
Ell
8:59 PM
Ima have to use a macro.
Or copy and paste a lot
 
Is Unity a good way to start out programming?
 
Ell
I've never written a macro before xD
 
for a complete beginner.
 
Ell
I have never used it but I'm gonna say no
you gotta crawl before you can walk
 
I saw this post by the Super Meat Boy creator
 

« first day (945 days earlier)      last day (4002 days later) »