« first day (300 days earlier)      last day (4638 days later) » 

12:00 PM
and just have functions
 
No operators, no operator overloading. The Java crowd is gonna love your language!
 
sbi
@FredOverflow I'd settle for making all type modifiers belong to the type, not the object, and express that syntactically. Like int[10] my_array.
 
@DeadMG but will it let me overload whitespace?
or comments, actually. That'd be a neat feature too
 
sbi
@jalf Oh yeah, we had that paper here a few days ago.
 
@sbi I would prefer array<int, 10> my_array, just like in the next stdlib.
 
12:01 PM
not going to have whitespace overloading
 
@DeadMG aww... Please?
;)
 
no
 
you need some kind of unique selling point!
 
I want missing whitespace overloading!
 
I've got enough problems making my existing grammar work unambiguously
hmm
 
sbi
12:01 PM
@FredOverflow I wouldn't, that array is too verbose for my C-spoiled taste. I prefer [] instead.
 
@jalf make_unique<selling_point>
 
I think I've got selling points
 
@FredOverflow you mean like if I have two variables a and b, I can overload ab to mean a * b?
 
sbi
@DeadMG Don't be so harsh on him!
 
yeah, that's clever too
@DeadMG needs to add that
 
12:02 PM
@sbi I don't mind verbosity in type names.
 
no
 
@jalf exactly
 
sbi
@FredOverflow Neither do I. I just mind unnecessary verbosity. :)
 
DeadMG++ definitely needs an exponentiation operator or it will never take off.
 
no
I think that I am doing just fine with the existing operators
 
12:05 PM
@FredOverflow What it really needs is the ability to define arbitrary new operators.
 
in other news, having to use a non-distributed VCS is just painful now
and the fact that it's CVS doesn't help
 
you know
I get a fresh alert every time you edit that
 
sbi
@DeadMG 'course I know! But I'm a perfectionist!
 
@DeadMG no one wants old stale alerts
keep 'em fresh
 
12:06 PM
ok
 
@JerryCoffin Yes, that would be awesome. Fixed operator spaces are for pussies!
 
sbi
@JerryCoffin Didn't ALGOL have this?
 
maybe I could have identifier := (args) -> return_type { statements } as a function definition syntax
 
I want my *^->% operator!
 
or, better yet, identifier :: ( args ) -> return_type { statements }
 
12:07 PM
@DeadMG Ah, binding lambdas to names? Hello JavaScript!
 
@sbi No, but ML (and various of its progeny) did/do.
 
sbi
@FredOverflow If I was Merkin, I'd flag that for obscenity!
 
no
I already have identifier := [] { }; for that
 
:=[] robot identifier
 
I was actually seriously considering dropping function definitions entirely and only using lambda binding
 
12:08 PM
@DeadMG That lambda syntax looks exactly like C++0x.
 
but I came up with a couple problems, like function overloading
@FredOverflow Funny, because it is.
so either I had to introduce generic "variable overloading" into the language, or I had to do something special for functions
 
@DeadMG Would you dare to 'unify' the two by making both capture list and argument list optional? Or too much of a parsing hassle?
Arguably rather than making argument list optional you could at least allow for it to make it empty.
 
@DeadMG Are your lambdas monomorphic like C++0x's or polymorphic?
 
problem is, I already have identifier := { } for named arguments
 
() -> blah { yay } vs [stuff](quux) -> baz { whoah }
 
12:11 PM
but I guess that it's not actually ambiguous, because that's not an expression
@FredOverflow Either- they're first-class functions and can take any compile-time arguments as well as run-time
so, I could just special-case the semantics of variable definitions for if that variable is a lambda
and then you could do lambda overloading too, which would be nice
 
@LucDanton in a sane language you have no capture list
although I'm not sure how that could be implemented to play nice with value and reference types
 
@jalf How do you solve the funarg problem?
The point of the capture list in C++ is not to specify what is used in the body, the compiler can (and will) figure that out. It's to specify the relationship between other local objects and the closure.
 
default-reference
oh, also, I had a great idea
when you specify a function or member function (like obj.func) then instead of function pointers, I'll generate a function object which can be called with all overloads
 
tl;dr delegates
 
no, it'll be a compile-time thing
unique types for each function
 
12:20 PM
tl;dr currying
 
could write a currying thing but I never saw the use of currying anyway
 
At least one use is that (+ 1) is shorter than \x -> x + 1, but admitted not by that much.
 
argh
fuck you, Bison, it is not ambiguous at al
 
@DeadMG Hmmm...I wonder how often I've said (or at least thought) that. So far I've been wrong every time I did though...
 
12:33 PM
lol
it turned out that it completely was ambiguous- I forgot to remove some duplication in the grammar
 
@FredOverflow that clown was part of my worst nightmares when I was young
 
conceptually, it wasn't ambiguous :P
holy shitnips
I tried to make the lambda capture list optional
91 reduce/reduce conflicts
ok, this doesn't make much sense to me
how can { } be ambiguous with [ ] { }?
 
@DeadMG Yeah -- good luck with that. I'm pretty sure you'd have to change a whole lot to do that unambiguously.
 
@LucDanton yup, hence my second comment, that it'd be tricky to implement in a language like C++, where you need to distinguish so clearly between capturing by value and by reference
 
@DeadMG The question at that point is whether the { } is a lambda or a normal block.
 
12:39 PM
@jalf What's insane about C++ then?
 
except a lambda can only be preceded by identifier :=
or in an expression context
neither of which can be a compound statement
 
@DeadMG Yes, but can it figure that out by looking ahead only one symbol?
 
how about by looking behind a couple of symbols?
actually, I guess that since expressions are statements
can't make both the capture list and the function argument list be optional
 
Yeah, that's why I suggested () be used rather than skipping it.
[captured] { } wouldn't work though.
 
yeah
except adding it only made things worse
to 14shift/reduce, 200 reduce/reduce
think I'll just live with [] being mandatory
 
12:44 PM
@DeadMG I'll repeat some ancient advice from Niklaus Wirth: don't try to design your grammar in anything like BNF. Instead, design it in railroad diagrams, and translate that to BNF only when it's (at least reasonably) complete, but still treat the BNF as essentially the result of a compilation, not something you design with/in.
 
never heard of railroad diagrams
 
 
Huh, 1. has to be written 1.0E+0?
 
huh, do not use inheritance ever, i only use inheritanc because of polymorphism
 
I think you have missed one railroad switch there. :)
 
12:50 PM
Silly resolution :( I can't do OCR!
 
@LucDanton No -- you can skip around the e+0 part, but it does have to be 1.0, not just 1. (in that particular grammar).
 
Apendices at the end of the document.
This site looks nice, rail road diagram generator: railroad.my28msec.com/rr/ui
Accepts EBNF.
 
1:05 PM
Heya, what is the context of this new room topic?
 
buks r gud
 
sbi
@hexa learning how too program?
 
still baffles me how Windows can be so terrible at transferring files across a network
 
@jalf Read the spec and you'll be amazed that it works at all.
 
1:23 PM
@LucDanton lol @sbi Well, i guessed as much, but I thought something or someone started an event that triggered the topic
1
Q: Standard/Proper way of counting lines of code?

hexaHow should I count the lines of code in a project? In C++ for example, should I count the lines of the header files with my class definition? Should I count the header of a (non standard) library I am linking against? In Qt (or any other GUI framework), should I count the lines of the form's de...

 
sbi
1:53 PM
To get some weekend spirit into this room:
t's not so much that I enjoy being drunk. I just don't like being sober
 
@sbi I'm starting to get into it.
 
Hi all
 
I need to buy beer, drank the last one tonight :(
Sad part is that when I get home I wont have a cold one waiting for me :/
 
sbi
See, we're talking alcohol and the @Cat shows up. Do i see a pattern there?
 
Is there any special precautions I should care when porting C++ code from a 32 bit to 64 bit machine architecture ?
 
1:56 PM
yes
 
sbi
@Mahesh Well, anything that assumes a certain width (in bits) of certain types, obviously.
 
do not assume the size of a pointer is 32bits in any part of your code (or that any other built in type has the same number of bits)
 
@sbi - There would be increase in byte code. But how would a language impose rules for 32 or 64 bit.
By byte code I meant the final executable
 
@sbi Nope.
 
sbi
@Mahesh I wasn't talking about executable size.
@CatPlusPlus Yes, I do!
 
1:58 PM
@Mahesh Different datatypes have different sizes
 
@jalf - Yes, I understand that. How would syntactic rules change? Exceptional handling for that matter
27
Q: Porting 32 bit C++ code to 64 bit - is it worth it? Why?

NTDLSI am aware of some the obvious gains of the x64 architecture (higher addressable RAM addresses, etc)... but: What if my program has no real need to run in native 64 bit mode. Should I port it anyway? Are there any foreseeable deadlines for ending 32 bit support? Would my application run faster ...

@jalf You have answered about EH in your answer. Could you please explain it more
What exactly you meant by calling conventions ?
 
sbi
@Mahesh C++ is a language that is purposely platform-independent. There's no syntax rules changing with bit width. But the same syntax rules will lead to different results for some operations.
 
@sbi - Ok.
 
In a 32-bit build, you can typically get away with casting a pointer into an unsigned int and then cast it back without losing data. In a 64-bit build, an unsigned int is often still only 32 bits wide, but a pointer is 64, so such a cast would be a really bad idea
 
@jalf - Ok
 
2:04 PM
@Mahesh a calling convention is basically the protocol for a function call. Where should the parameters be stored, where should the return value be stored, that kind of stuff
 
@jalf - You meant at the machine level. Got you.
 
for example, some calling conventions specify that function parameters should be put into registers, and others say they should be on the stack (of course there are also differences in where on the stack they should go, or in what order they should be pushed)
yep
ok, gotta run
 
@jalf Shall discuss about EH too later
Thanks for info
 
0
A: Standard/Proper way of counting lines of code?

Jerry CoffinMany people have reacted somewhat negatively to this question. I would, instead look upon it as an opportunity. Nearly the only reasonable excuse for counting lines of code is that it's been demanded by somebody higher up the food chain (who's clearly clueless, or he wouldn't ask for that). As s...

 
oh, let me read that
 
2:10 PM
Who wants to bet on whether this ends up with a positive or negative vote total?
 
I just stumbled on a #if __APPLE__ while browsing around the .NET 4 source code in ILSpy.
2
 
@CatPlusPlus Hmmm....Looking at: abstrusegoose.com/386, I can't help wondering at the one uptick he shows. Is there really any "silverware" that includes any silver any more?
 
I have no idea.
 
sbi
@JerryCoffin I have some. But it's put away into the rear of some drawer. It needs to much attention when used.
 
2:23 PM
meh
 
sbi
@TonyTheTiger You're a goat today?
 
@sbi Wow, I am impressed. Is it actually reasonably recent, or something a few generations old?
 
this implementation of quicksort I got via-via from a uni professor, and it goes into endless loop
void quicksort(int a*, int left, int right)
{
	if (left < right)
	{
		int pivot = partition(a, left, right);
		quicksort(a, left, pivot-1);
		quicksort(a, pivot+1, right);
	}
}

int partition(int a*, int left, int right)
{
	int pivot = a[left];
	while (true)
	{
		while (a[left] < pivot) left++;
		while (a[right] > pivot) right--;

		if (left < right)
		{
                   int temp=a[left]; // swap
                   a[left]=a[right];
                   a[right]=temp;
		}
		else
		{
			return right;
 
sbi
@JerryCoffin I bet it's about a hundred years old.
 
it has syntax errors for one, but it doesn't even work either
I can't believe it, meh
 
sbi
2:25 PM
@TonyTheTiger It can never work as long as it has syntax errors.
 
@sbi I'm feeling like one yes
@sbi for sure, but removing them, it doesn't work either
 
sbi
@TonyTheTiger Well, why don't you at least post a compiling version? On ideone, preferably.
 
@sbi Ah, that sounds reasonable.
 
it doesn't work because you always pick the left value as the pivot
but all the values in the array aregreater than the pivot
so partitioning on it does nothing
 
2:38 PM
hmmm yea
 
Well it is expected that it does nothing.
(Or does 'partitioning on' not refer to just the call to partition?)
 
I've created a version that does work, even if you always pick pivot to be left most element
 
2:53 PM
It shouldn't matter which element you pick as pivot (provided the list isn't already sorted).
Is there something like rant.stackexchange.com? :)
obviously not :(
 
lol
 
sup yall
 
3:21 PM
@awoodland I would be curious about your research
 
I have this question about C#, and I think I need to do BOTH answers. Which do I pick as accepted?
0
Q: Create empty native C++ byte* in C# to PInvoke with

XaadeI need to create a binary blob of empty data to PInvoke a native C++ dll that needs a unsigned char* of nulls. The native C++ program is expecting a structure of data, and there's a nulled area of bytes in the middle, but in C# I can't just make a struct with an initialized byte[] in the middle....

 
Roll a dice.
 
I would leave the work to the marshaller, but the use of fixed is tempting.
 
Im gonna answer that you need to do answer #1 and #2 and then you accept my answer
 
@hexa fair enough
@EtiennedeMartel Well, the problem is that, if I didn't use fixed, I'd have to have a method to create said structure in order to fill it out. And if someone fills it out to the wrong size, whoops
 
3:31 PM
Yeah, it's pretty error prone otherwise.
Go with fixed, it seems to be exactly what you want.
 
Does anyone have a spare Google Plus invite they can spare for me? :)
 
@JohnDibling I think I do.
 
Can I use Int16? Or would the Int16 not do correctly? I want a field that's two bytes, is short two bytes on a 64 bit system?
 
@Xaade short is always two bytes in C#.
 
@Etienne: Thanks! jdibling@gmail.com if you do
 
3:36 PM
Wait, I'll have to target x86 anyway. My clients aren't using 64 bit..... gah.... so much to think of when you start from scratch.
 
Lots'o'flags.
 
Well, targeting 32 bit is easier anyway.
I was thinking I'd have to force 32 bit data on a 32 bit machine from a program compiled 64 bit.... but a 32 bit machine can't run a 64 bit app...
 
@Etienne: Thanks again!
 
No problem.
 
WEEKEND IS HERE
SO LONG SUCKERS!
2
 
3:49 PM
The weekend has not arrived for me :(.
 
Als
4:02 PM
Okay Weekend on for me
:)
 
6 more hours for me.
 
I'm still in last weekend. Starting Monday, I have a job again.
 
Meh, I search how to stop vim from removing all-blank lines after auto indent, and the Internet is like "hurr durr you shouldn't have whitespace-only lines".
inoremap <CR> <CR>x<BS> works, if anyone ever needs it.
 
I hate vi/vim
 
Als
Hmm
 
4:13 PM
even tho I coded a lot with vim, I could NEVER get used to it
 
4:33 PM
Guys! Does anyone here know abt files with the extension ".o.dump" ...Please respond if any!
I'll be waiting for your reply.,... and please Don't think I'm offline!
 
Eh
A .o is probably an object file.
So I'd say .o.dump is a dump of said file.
 
Any idea of running this file!
?
 
I doubt that it's runnable
 
@Mojo_Jojo You could look at the first few bytes with a hex editor and then google those bytes.
Most files identify their "type" with such "magic numbers" at the beginning.
For example, .exe files usually start with 4D 5A 90 as far as I can tell.
 
yeah, the PE file has magic values to identif yit
 
4:52 PM
Although I don't really see what's so "magic" about them...
 
they're named so because there's no logic or reason behind them
 
Als
hmm
I am a little confused...
The lifetime of the temporary bound to a const reference extends till the lifetime of const.
Does it apply to functions returning a temporary?
 
@Als Ony in the case of local references. It does not apply to reference members, for example.
const Foo& local_ref = some_function_returning_a_Foo_by_value();
That is the only case where lifetime extension happens.
 
Als
const std::string& ClassName::MethodName() const
{
return "";
}
In this case?
 
This is undefined behavior. You cannot return automatic objects by reference.
 
Als
5:03 PM
Yes i thought so
and I am a little confused
 
@Als: No, it does not
 
that link does not show any cases of returning a reference
the functions he calls in his code samples only ever return by value
 
That example is different: the temporary is the value returned from the function, and the reference is local
 
@Als Note that f returns by value in the linked example code.
 
Als
@DavidRodríguezdribeas: Glad you are here, I was a little confused after seeing the sutter blog
 
5:04 PM
@David: I have a question on your example with the nested-class/inhertance thing
 
Als
aha got it
so returning a reference or pointer to a local is undefined behavior in the first place
 
The process of binding a temporary to a constant reference is equivalent to the compiler creating a hidden variable:

const type & x = foo(); // where foo returns by value

is equivalent to

const type __temp = foo();
const type & x = temp;
 
Als
@DavidRodríguezdribeas: And returning a reference or pointer to a local is undefined behavior in the first place
 
now, in Herb's article that is actually a bit different:

const base& r = foo(); // where the declaration is: derived foo()

is equivalent to:
derived __temp = foo();
const base& r = __temp;
 
Als
so just to make it clear,
 
5:06 PM
@Als For automatic local objects it is undefined, yes. For static local objects, it is perfectly fine.
 
Yes exactly, the local object will go out of scope when the function completes, then the stack frame will be dropped and you will have a reference to memory that is no longer an object
 
Als
So had it been, const std::string ClassName::MethodName() const
and const string &ref = ClassName::MethodName()
 
Foo& argh_singleton_argh()
{
    static Foo foo;   // note: static local object
    return foo;       // returning that by reference is okay
}                     // (but that has nothing to do with lifetime extension)
 
Als
then it extends the lifetime of the returned temporary till scope of ref
 
That is perfectly fine. The temporary is in the context of the caller, not the calle
 
5:09 PM
@Als This invokes a copy constructor.
Because MethodName returns by value.
 
Als
@FredOverflow: Right, static vars have a different lifetime than locals
 
@Als foo is a local in that example.
There are automatic locals and static locals. Both are local.
local says something about scope, static says something about lifetime.
 
Als
@FredOverflow: Exactly, That seems right
 
Note, that the extension of the lifetime is to exactly the same lifetime that the injected variable __temp in the examples above, which is no coincidence. The other requirements around the binding of the reference (existence of the copy constructor, for example) are no coincidence either, even if the copy will be elided
 
I just got an email from STL, that guy is really cool.
 
Als
5:12 PM
@DavidRodríguezdribeas: right
Another doubt:
 
@ltjax Puff... that is a hard one, but go ahead
 
Als
Is dereferencing the value of a pointer to a local an undefined behavior or even returning a pointer to local is UB?
what point it becomes a UB?
 
Actually I connected here trying to see whether AProgrammer would be around
 
Good question, but I wouldn't worry too much about details like that.
 
dereferencing
 
Rob
5:14 PM
Yea definitely dereferencing, I read a long discussion by the C++ committee on that one
 
Als
6
A: Why do compilers give a warning about returning a reference to a local stack variable if it is undefined behaviour?

AlsIf you return a pointer/reference to a local inside function the behavior is well defined as long as you do not dereference the pointer/reference returned from the function. It is an Undefined Behavior only when one derefers the returned pointer. Whether it is a Undefined Behavior or not dep...

So that seems correct?
 
Als
probably, @DavidRodríguezdribeas you remember this one.
 
yes I remember that one :)
 
Rob
Totally off topic, but is a salt only useful against dictionary attacks? (eg. is there any point to using salt when encrypting a file?)
 
5:17 PM
@Als You can't dereference a reference.
 
Als
@FredOverflow: thats right, lets say pointers
 
Rob
@EtiennedeMartel I will be using BCrypt
But my impression is that a salt is next to pointless for something that wouldn't be brute-forced anyhow
 
@jalf what do you mean with "hiring STL"? ("hiring STL must have been one of the best things that's happened for the MSVC team in recent years")
 
@StackedCrooked STL works at Microsoft. His full name is Stephan T. Lavavej.
 
5:22 PM
@FredOverflow aha
 
I first thought he meant Stepanov and Lee, but that couldn't be true :)
 
Als
Thanks for clearing my doubts guys @FredOverflow, @DavidRodríguezdribeas
 
anytime
 
5:24 PM
Damn, now I'm thinking about overloading whitespace again.
4
Q: What is the precedence of the meta-operator ...?

FredOverflowWhat is the precedence of the meta-operator ... whose job is to unpack template type parameter packs? I imagine it's pretty low, but how low is it? The C++ standard says: The precedence of operators is not directly specified, but it can be derived from the syntax. Anyone up for the challeng...

question update
 
oh bugger
turns out that my nice lovely grammar was in fact totally ambiguous, as I was afraid
 
@DavidRodríguezdribeas "anytime" has more Google hits than "any time" here...
 
@David: You said that Gold is mentioned in exactly the same context in your example, but I think introducing the "new" gold changes the context
 
@DeadMG Isn't syntax fun? :)
 
lol
 
5:26 PM
@David and I'm trying to avoid using Gold after the context changes
We're basically planning to use that "device" to build our homebrew RTTI solution - and to connect the current metaclass to that of the baseclass
without explicitly mentioning the baseclass
Right now, you have to do that explicitly, which is kinda annoying
 
@DavidRodríguezdribeas, I'm here now.
 
19
Q: Why do compilers give a warning about returning a reference to a local stack variable if it is undefined behaviour?

Gob00stThe C++ standard states that returning reference to a local variable (on the stack) is undefined behaviour, so why do many (if not all) of the current compilers only give a warning for doing so? struct A{ }; A& foo() { A a; return a; //gcc and VS2008 both give this a warning, but no...

Please upvote my comment on the question so everybody immediately sees it.
 
@AProgrammer, @David - please invite me if you're starting a new room ;-)
 
Is it unhealthy to drink 1 liter of OJ in one day?
 
Orange Juice?
 
5:36 PM
yes
What did you think, O.J. Simpson? :)
 
How would I drink 1 liter of him? That's disgusting.
 
@DavidRodríguezdribeas, my point was that ideone.com/XQGJe is valid. So preventing a similar structure in a class must have a separate justification which I think is the name look up in inline functions.
 
Oh, a moderator didn't read my flag report comment, and ended up moving the question to superuser rather than cleaning the close votes.
 
I find that orange juice (from concentrate) has high acidity and can upset stomach. Also it contains just as many calories as cola and GI is also high. So I'm not for it. However, each body is different. YMMV
 
5:38 PM
What is GI?
 
@FredOverflow Disgusting, but nutrious!
 
But yeah, lots of sugar.
 
@FredOverflow Glycemic Index
 
glyc... = sugar, right?
 
@Itjax, can't you simply qualify Gold here: typedef B::Gold BaseGold;, that wouldn't be UB.
 
5:38 PM
@AProgrammer Does it work without the block after the first typedef?
 
@AProgrammer: no, the whole point is to do it automagically
 
@FredOverflow sorry, it seems GI is rather low.
 
I don't want to re-mention the baseclass
 
@AProgrammer BaseGold? Sounds like inheritance. I'd sure like to inherit some Gold...
 
GI means how rapid the sugar enters your blood
 
5:39 PM
I must be tired... I spent 15minutes debugging this:
            if (rcvd_list.at(i)->pkt.intdata == data)
                rcvd_list.at(i);
 
If I had some kind of device to find the base-class from within class scope, that would solve all my problems
 
@FredOverflow, no. But the context is
9
Q: Name-lookup of nested classes with inheritance

ltjaxIs this guaranteed to work: struct A { struct Gold {}; }; struct B : public A { typedef Gold BaseGold; struct Gold {}; }; struct C : public B { typedef Gold BaseGold; struct Gold {}; }; static_assert(is_same<B::BaseGold, A::Gold>::value, "Not the right treasure!"); static_asse...

 
obviously I meant return rcvd_list.at(i); /facepalm :(
 
High GI food causes the body to quickly defend with insulin. You can respond more GI food and enter a vicious cycle. This can lead to hypoglycemia.
 
@ltjax Really? Sounds like you don't have a lot of problems.
 
5:41 PM
@FredOverflow inheritance taxes would be prohibitive...
 
@AProgrammer Yeah, inheritance always comes with a cost, doesn't it?
 
FredOverflow: Zen, brother ;)
 
@ltjax In a language with multiple inheritance, the base class is not always well defined.
 
@AProgrammer, I'm well aware of that
 
@AProgrammer Also, some (many?) classes don't have any bases whatsoever.
 
5:43 PM
but our RTTI system doesn't model that, so we just need to get it to work for one base
any device that basically let's us do: T::PrimaryBaseClass::something (); would be fine
and there has to be a way to install PrimaryBaseClass in the class without mentioning it again
 
5:57 PM
@ltjax Well, you could just have a base() method inside PrimaryBaseClass that simply returns itself and then call that from the derived classes whenever you need it...
Or do you need to refer to static members?
 
6:14 PM
minor edits to answer do not bump questions up, but big ones do? or am i crazy?
 
Als
A doubt, If i need to save a chat transcript, how to do that?
 
FredOverflow: yea, and also the base() method would have to be explicitly qualified, since the derived class will have base() too (for its children)
 
Als
@CatPlusPlus: hey cat you might know of this
5 mins ago, by Als
A doubt, If i need to save a chat transcript, how to do that?
 
What'd you mean?
 
Als
I want to save a conversation that happened here in chat for my future reference, how to do that
 
6:39 PM
Sorry, I was not on the computer. @AProgrammer, the difference is that when you declare members in a class, the scope of the declaration goes back (by some definition), to the beginning of the class. That is why your second piece of code is an example of why you want the behavior to be different
 
@DavidRodríguezdribeas, we agree on the rule. I'm discussing the rationale for it.
 
@ltjax Why these complicated inheritance chains? This is C++, not some crap language.
 
In the ideone link I posted, the language defines that the scope of the typedef is the whole class. Consider this extension (which does not compile): ideone.com/UHCcI
@FredOverflow That is actually the real question: What is the problem to solve?
 
@Als Room > Create new bookmark, or just save the permalink to the first message.
Bookmarks are public AFAIR.
Dunno if you need to be an owner.
 
Als
If i click create bookmark it just says select start and end message and then nothing..
puff
Okay I opened the permalink and then saved the web page
That would be fine too
 
6:59 PM
@ltjax Is PrimaryBaseClass an actual base class? Or is it a type that is enclosed in one of the base classes? (Somehow, after trying to understand the problem it is starting to look a bit like a hierarchy of classes with a mirror Pimpl hierarchy?
 
Als
Hola @TonyTheTiger
 

« first day (300 days earlier)      last day (4638 days later) »