« first day (310 days earlier)      last day (4640 days later) » 

6:09 PM
you have to build Qt with a win installation of it?
 
@TonyTheTiger come again?
 
6:26 PM
lol
he asked him for a pic because he thought he wanted to do a porn with him?
 
FWIW, I've added another answer to the proposed-FAQ question about overloading new and delete. I think it's a bit more complete that what was there, though it could still use some work. I have to go though -- the US Pro Cycling Challenge starts in 45 minutes, and I'm going to be there...
 
> Officially, the global operators much return memory aligned so that it can be used for an object of any type. Unofficially, there's a little wiggle-room in one regard: if you get a request for a small block (e.g., 2 bytes) you only really need to provide memory aligned for an object up to that size, since attempting to store anything larger there would lead to undefined behavior anyway.
I did not know that O_O
And it's still here for C++0x!
The pointer returned shall be suitably aligned so that it can be converted to a pointer of any complete object type with a fundamental alignment requirement (3.11) and then used to access the object or array in the storage allocated (until the storage is explicitly deallocated by a call to a corresponding deallocation function).
 
@LucDanton what you quoted above (the "unofficially, ..." thing) is only true if you do "new char[N]", not if you do "operator new(N)"
hm but it makes sense... if it is bigger than what you allocated you cannot use it...
 
:D
 
Do you mean to say that operator new is specified to return memory suitably aligned for any type smaller than the request?
 
6:41 PM
but you could try to convert it to a "int*" without writing through it, and it has to work...
@LucDanton no. afaik operator new is required to return memory suitably aligned for any object
only "new char[N]" is required to return memory suitably required for objects less than or equal in size of sizeof(N)
 
(In fact the Standardese I pasted are the specs for allocation functions; so yes)
@JohannesSchaublitb That would explain my confusion then.
 
hm it says "access the object". not "access the object's value"
although IIRC, accessing an object means to modify it or read its value in C
if "accessing the object" doesn'T necessarily mean to access its stored value, I think you are fine to merely dereference it.
int *p = (int*)operator new(sizeof(int)-1 > 0 ? sizeof(int)-1 : 1); int &r = *p; I think that this is valid.
IF "accessing an object" doesn't imply to access its stored value
 
You've been having fun with references lately. Any recent insights? Or maybe I'm imagining things.
 
but I suspect that it actually implies to access its stored value or modify it
@LucDanton insights into what? xD
 
Rules regarding e.g. references.
 
6:49 PM
hmm NVM. I belive it is simply undefined behavior. I don't think it is valid to dereference it - there must be storage suitably for "int". it doesn't make sense to me otherwise.
no rule in the spec handles the case where one has an lvalue of type T to a half-allocated storage or im bloody missing it
@LucDanton dunno what you mean :(
 
@JohannesSchaublitb Well it is a tentative suggestion. I'm 'fishing out' because I can't really peer into your mind to spell out those insights, if insights you did have :)
 
hmm
im sorry I can't peer your question :(
 
No worries.
To phrase it differently, it's not the first time that I've seen you coming up (lately) with 'language stress tests' involving references. Stress tests of a nature that I haven't seen anywhere else. So I was wondering if you had previously got some better understanding of C++ that inspired those examples.
With that said, time to eat.
 
Rob
7:04 PM
Disclaimer: This doesn't explicitly relate to C++.
I have a shared key that is initially obtained from a group attribute on our AD server upon logging into my application. Should I avoid persisting its value in memory?
 
Heh, I like the SO badges. I especially value the Necromancer and the Excavator badges. :D
 
Rob
What's necromancer?
 
Answered a question more than 60 days old.
 
And got 2 upvotes.
 
Rob
Ah.
 
7:24 PM
this happens after I've chosen a QtApplication template in Vs2008
I don't get it?
 
7:40 PM
ok, I fixed that
but the template don't even compile :(
 
Rob
VS2010 crashes whenever I add an entity to a .edmx that generates from a database
You would think that they would test basic features of the software
 
It's MS, what else do you expect
 
8:05 PM
guys
 
johannes
 
8:18 PM
Where?
 
Right behind you.
 
Nope. :(
 
8:31 PM
> In good OO programming, we don’t make class hierarchies in order to satisfy our inner Linnaeus.
Ah, finally a good quote to use regarding silly arbitrary hierarchies.
> Aside from having snorted coke through my nose over "nearly tautologic diagrams"
I thought that was about cocaine at first.
Is there a verb for 'surgically removing'?
 
8:47 PM
@LucDanton eviscerate ?
 
I think you need a second opinion here.
 
what do you mean?
 
Whoever recommended an evisceration to you is a quack :)
 
@LucDanton I don't want an evisceration, whoever said I wanted that?
 
Looks like ablation is the word I was looking for. I don't think I've seen it used in that context.
 
8:53 PM
 
9:32 PM
hey
 
doing more prolog
 
@DeadMG Why? What did you do?
 
still gotta hand in this coursework
 
9:38 PM
oh
 
if PROLOG made any helpful kind of sense, it'd be, well, helpful
or had normal, useful things like lambdas, or meaningful data structures
 
i think developing Turbo Prolog was about the last thing Borland did
so you can say Prolog is a killer :-)
i think maybe what i did wrong with my example, if i remember it, was i used X both in the formal args and as actual arg in query
so got confused
 
right now, I'm more interested in useful things
like chaining functions together
 
good luck
 
yeah
I hate this language with a passion
being able to have the append function also be the split function is fun, but it rapidly loses value when it's really hard to do basic things, like forward functions
 
9:46 PM
means?
 
well, I've got a function, like sum(X, Y, Out) :- Out is X + Y.
and I'm trying to build a composite, like
multisum(X, Y, Z, Out) :- Out is ???.
 
can't you write X + Y + Z ?
 
only in that trivial example- the real logic is not so simple
I need to write multisum in terms of sum
 
or like "Blah = X + Y, Out = Blah + Z"
 
right
 
9:49 PM
sorry, "sum( X, Y, Blah ), sum( Blah, Z, Out )"
?
 
so it's impossible to composite fuctions in any way without creating useless intermediary variables
who dreamed up this insanity?
 
possibly someone in Edinburgh
 
well
PROLOG is thoroughly worthless and I shall be immensely glad to get it gone
on the other hand
when I'm done, it's buzzword-bingo time
toss-up, really
 
you mean exam
 
no, I mean, more coursework
 
9:55 PM
i'm hungry gotta go
 
I have to describe Use Case Diagrams, Sequence Diagrams and Contracts and how they are related
 

« first day (310 days earlier)      last day (4640 days later) »