« first day (107 days earlier)      last day (4833 days later) » 

user379888
2:39 AM
From Bruce Eckel's "thinking in C++":All objects of a particular type can receive the same messages. This is actually a loaded statement, as you will see later. Because an object of type “circle” is also an object of type “shape,” a circle is guaranteed to accept shape messages. This means you can write code that talks to shapes and automatically handles anything that fits the description of a shape. This substitutability is one of the most powerful concepts in OOP.
 
user379888
Can anyone please explain this paragraph to me : (
 
user379888
How can another object recieve the message sent for one object?
 
Calling a member function is "sending a message"
 
user379888
@JamesMcNellis: I get that.But how do you receive the message sent for another object?
 
@fahad One object "sends messages" to another object by calling member functions on that other object.
 
user379888
2:46 AM
@JamesMcNellis:Thank-you
 
@fahad it is not "another object", it is the same object
if Shape is a base class of Circle, then all Circles are also Shapes, thus all Circles can receive all messages that all Shapes can
 
user379888
From Bruce Eckel's "thinking in C++":All objects of a particular type can receive the same messages
 
user379888
Clearly says all objects
 
that does not contradict what I said
 
 
1 hour later…
user379888
4:01 AM
Please,help me out in 'is a ' and 'has a ' relationship.I am stuck
 
What's the problem @fahad
 
user379888
@wilhelmtell: I don't get the difference between both of them.
 
We express "is-a" with public inheritance; "has-a" we express with member data.
non-public inheritance is also a form of "has-a".
 
user379888
has-a is having the other thing inside it
 
@fahad well that's a bit obscure. it's best to talk in code.
 
user379888
4:05 AM
I am just building up my concepts of OOP so don't have a code
 
struct B {
    // …
};

struct S : public B {
    int n;
};
Above, the type S is a B, but has an int.
struct B {
    // …
};

struct S2 : private B {
    int n;
};
Above, S2 has an int but also has a B.
Ok?
@fahad do you understand fundamental C++ syntax?
 
user379888
No! why an 'a' with a public member and an 'an' with a private one?
 
user379888
Yes,I am learning OOP with the help of C++
 
:-S This is English grammar. :-S Whatever, same thing.
 
user379888
: p
 
user379888
4:11 AM
Thanks!
 
The classical motivational visualization of the idea here is to say that a truck is a vehicle. So in representing that in code you'd create a vehicle class and derive from that the truck class. Public inheritance, therefore has-a.
 
user379888
This example was good: )
 
Continuing with the analogy, a truck has a steering wheel, so in the truck class you'd have a member data, steering_wheel.
Of course, this is all good pedagogically to explain the ideas of has a and is a, but these concepts go beyond that. There are actual implications to choosing to represent something as is a vs has a or the other way around.
 
user379888
I would like to keep it till here only as I am very new to it : )
 
Ok, no problem, I'll stop here then. But the basic idea is simple: you are not a computer; you have a computer. And you don't have a human; you are a human.
And so in representing this in code you'd go from here, choosing what to derive and what to include as member data.
 
user379888
4:19 AM
I don't have a human in myself : p
 
Your teacher asks you to blog?
 
user379888
No
 
user379888
Why so?
 
user379888
I wanted to get some adsense so I started to blog
 
For some reason I had a feeling that mycsnippets is a communal blog.
k
 
user379888
4:22 AM
Its not a standard blog at all
 
user379888
I am badly hurt because google says they can not put adds on my blog.I have 6 months to this blog
 
user379888
They killed the blogger inside me...
 
Money in blogging is a myth that was long debunked. Don't blog for money, blog to get better at writing and expressing yourself. This is very useful in and of itself.
 
Blogicide.
 
user379888
I also started www.technology-arena.com
 
user379888
4:25 AM
But stopped the work because I never got affiliated with google
 
wut
k. stick to is-a and has-a.
 
user379888
oki : p
 
user379888
What the difference between :
#include <iostream> // Stream declarations
using namespace std; ?
 
user379888
using namespaces is including some files isn't?
 
No. using directives don't include any files. They just affect how names can be found. You still need to include the relevant headers.
 
user379888
4:30 AM
What is std? A library?
 
It's a namespace...
The namespace in which all of the standard library entities are declared.
 
user379888
Can I include multiple namespaces?
 
Yes
Do you have a good introductory C++ book?
 
user379888
yes.A lot of them
 
user379888
Following Bruce Eckel's ,"Thinking in C++"
 
user379888
4:38 AM
Also got Bjarne's Reference book but that's kinda complicated
 
5:01 AM
Anyone here with even minimal OpenGL experience? Just started playing around with it, and I've got a few questions.
First one is a real softball: I've created a glut window, but the viewport is tiny (ie. 2x2 centered on the orgin). How do I set the size of the viewport?
 
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=01
glViewport(0, 0, width, height); // Reset The Current Viewport
Does it make it?
 
Odd. Even after changing the viewport, a rect from (-0.5, -0.5) to (0.5, 0.5) takes up most of the window.
 
5:20 AM
Can anyone tell me the differences between private and public inheritance?
if B privately inherit from A, I won't be able to do this right? A* a = new B();
 
@MikeDouglas When you're using GLUT (which I'd recommend getting away from as quickly as possible) you set the window size by calling glutInitWindowSize.
@Drahakar yes -- private inheritance means to convert to the base, you need an explicit (C-style) cast. It's normally used only for implementation (i.e., it's pretty similar to embedding an instance of the base class into the derived class.
 
@JerryCoffin Right. The window is already 500x500, but the coordinate system that draws my rect to the screen is 2x2.
gist: 803667, 2011-01-31 05:17:36Z
#ifdef __APPLE__
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>
#else
#ifdef _WIN32
#include <windows.h>
#endif
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#endif

void Init() {
  glClearColor(1, 1, 1, 0);
  glClear(GL_COLOR_BUFFER_BIT);
  
  glColor3f(0, 0, 0);
  glLoadIdentity();
}

void RenderScene() {
  glRectf(-0.5, -0.5, 0.5, 0.5);

  glutSwapBuffers();
}

int main(int argc, char** argv) {
  glutInit(&argc, argv);
  glutInitWindowSize(500, 500);
  glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA);
  glutCreateWindow("My second OpenGL Program");

  glutDisplayFunc(RenderScene);
  Init();
  glutMainLoop();

  return 0;
}
 
@JerryCoffin (C-style) cast... wouldn't a dynamic_cast do the job too?
 
@Drahakar No. You can (sometimes, sort of) get with with a reinterpret_cast as long as its only single inheritance. with multiple inheritance, only a C-style cast works.
 
Sorry about taking up the whole screen... I thought the whole point of pastebins were that you didn't need to do that.
 
5:27 AM
@JerryCoffin I thought C++ casts could do everything C-cast did :S. This is sad :/
 
@Drahakar You've hit pretty much the only thing they don't cover.
@MikeDouglas Yes -- a coordinate system from -1..1 in each axis is pretty typical. You can adjust it, but it may be open to question whether you really should.
 
 
1 hour later…
user379888
6:37 AM
0
Q: Please check my coding style

fahadMy homework question states: Develop a class to measure distance as feet(should be int),inch(should be float).Include member functions to set and get attributes.Include constructors.Develop functions to add two distances.The prototype of sum function is : Distance Sum(Distance d); Here's my co...

 
6:57 AM
@Drahakar it is not sad: if you need to cast to a private base, you're almost certainly Doing It Wrong™
2
 
7:11 AM
someone should add towel day to this room's calendar
 
sbi
7:21 AM
@FredNurk Why don't you?
 
7:39 AM
@sbi because I didn't realize I could!
and I still can't: {"ErrorMessage":"You cannot schedule an event more than 100 days in advance"}
 
sbi
@FredNurk (You hadn't been an owner, but that was an oversight which I corrected.)
@FredNurk Bugger.
 
again an incorrect answer selected as "the solution". the OP can't even have tried it.
 
sbi
@AlfPSteinbach Share a link and let's downvote it into oblivion! :)
0
Q: Scheduled event displayed in room info box, clicking on it gets you to the cat

sbiWhen I look at the C++ chat room's scheduled events tab, it shows one current event. (The event itself is silly, it was just someone playing with this feature.) That event is also shown in the room's info box (whatever that's called officially), right above the users currently in the room. Clic...

 
2
Q: How to implement copy operator for such C++ structure?

KabumbusSo having struct ResultStructure { ResultStructure(const ResultStructure& other) { // copy code in here ? using memcpy ? how??? } ResultStructure& operator=(const ResultStructure& other) { if (this != &other) { // copy code in he...

it's funny, the code copies the wrong way...
 
sbi
7:55 AM
@AlfPSteinbach I guess Jim's answer used to be the accepted one? The one now on top (Nawaz') has my vote.
 
sbi
8:06 AM
@AlfPSteinbach The now accepted answer is just as bad.
 
sbi
8:37 AM
@Alf, I added my €0.2 to the discussion.
 
no wonder the euro is smacking the US dollar, we contribute $0.02 for that kinda thing
 
8:57 AM
@sbi yes, it was Jim's answer that was selected as solution
 
user379888
If we use the keyword inline but do not give the definition there, but provide it elsewhere.Will it suggest the compiler to make it inline?
 
@fahad: don't worry about that
@fahad: don't think of 'inline' as anything more than a syntactic convenience that allows you to specify the definition in a header
 
user379888
Thanks : )
 
@sbi: you really like the homework tag? :(
 
sbi
@fahad To expand on Fred's answer: What would it help you if you knew whether this would suggest inlining? It would still be just a suggestion, the compiler might still decide to do it either way, depending on the code in the function, the moon phase, or its mood.
@FredNurk Yes!
 
9:10 AM
moon phase and mood are not far off from the truth
considering release schedules for the former, and command line options for the latter :)
@sbi I've not yet seen it add any value, yet I have seen it detract
 
sbi
@FredNurk And moon phase and mood are so much connected, too! Oh wait, that wasn't compilers right? Yeah, it was women, I remember. Sorry.
@FredNurk I have. Hopefully, questions tagged `homework`aren't answered by a piece of code ready to be pasted, but by a gentle nudge into the right direction.
 
just don't let them hear you saying that
 
sbi
@FredNurk Whom?
 
@sbi those women
 
sbi
@FredNurk You know, I have more kids than I ever planned to have and two healthy hands.:) What could they do to me?
 
9:15 AM
I'm not sure; all I know is I tread lightly where it might result in sleeping on the couch
 
sbi
@FredNurk But then I don't think you have too many kids as yet, right? :)
 
None
 
sbi
Ah, so you will need her to accomplish something. :)
@FredN BTW, thanks for fixing my answer! I never know when to use "to" and when "too".
 
just sorry I missed the "min" typo
it did look weird, but I didn't follow the link
 
sbi
@FredNurk Yeah, I was just about to add a pun for that to my thanking message, but then thought better of it. :)
@DavidRodríguezdribeas Belated answer, but I just remembered that, when my students wanted to show me their program, I usually told them that I'm sure they could hack something together that would fulfill the obvious requirements, so I'm not interested in the result, but in their code. That really startled them each time a new course tried to turn in their first programs with me. Obviously, in two semesters of programming no one had ever looked at their code if that code just did what it was supposed to do.
Makes maintenance programmer weeping bitter tears to think of those becoming your coworkers.
 
9:25 AM
it's easy to test output, even easily automated; it's harder to judge code, especially beginners' code
in a way, I don't blame their previous teachers, but it would be nice to have courses which focused on code quality so the other classes didn't have to teach it in bits and pieces (which rarely works well, I think)
 
@sbi How do we convince people that in programming simplicity and clarity —in short: what mathematicians call "elegance"— are not a dispensable luxury, but a crucial matter that decides between success and failure? -- Edgster W. Dijkstra
3
 
and just as in mathematics, elegance sometimes seems to be a thing which cannot be taught
 
sbi
9:40 AM
@FredNurk Yesterday in the afternoon I had a nice chat with a former professor of mine (now, what, 15 years ago?) and he told me that one of his fellows has also written a program that analyzes the control flow of the programs turned in, in order to catch those who copied from each other and changed names and function order. And that guy also rejected any program turned in that didn't pass his test drivers, even if it was just for a minor difference in spacing.
But he never ever looked at student code.
 
sounds like a good undertaking but also a monumental effort; hence not as easily automated as testing just compiles-without-warnings and passes-all-tests (which might number several hundred) :)
 
sbi
9:59 AM
@FredNurk You can link to comments??
 
Jan 21 at 7:14, by Fred Nurk
useful: http://rchern.github.com/StackExchangeScripts/
several nifty features in there :)
 
this rooms title should be
#if defined(__cplusplus)
 
#ifdef
 
nah. #ifdef is messy, as theres no #elifdef
just #elif
 
shrug, not an issue I'm willing to argue about and ruin my good mood :)
 
sbi
10:07 AM
@FredNurk Haha, you probably won't believe this, but I have this very page open in a tab for days now, next to the one housing the chat, because I keep telling myself I need to take the time to look at this stuff...
 
if leaving the tab to be restored when I start the browser counts, I'd wonder how long I've had it "open" :)
 
Is _DEBUG a standard macro or Microsoft specific?
 
The _ on the front is the clue
MSVC specific
allthough, the general rule of what an _ on the front might mean is pretty damned not much of a rule
more of a suspicion.
@DavidRodríguezdribeas - don't you be pushing simplicity and clarity in here. Its boost::simplicity<> and boost::clarity<>!
 
10:36 AM
Hello World! First time in chat!
 
welcome
 
Anyone wanna try helping me figure something out? I haven't put much time into looking to see how to fix it but hey, might as well ask you people, if you find yourself needing of figuring something out.
Its a cool drag-n-drop interface with yui carousel...
Im trying to figure out how to make it to where the carousel stops lagging as items are being loaded in via ajax...
 
@drlouielouierd this is a C++ chat... that does not look like C++ to me...
 
lol
oops
thought it was the lounge :(
 
The Lounge<C++> to be specific
 
10:41 AM
@Tony At least it's about templates... ;)
 
yeah :P
 
@FredOverflow that's true, but the wrong kind... lol
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
 
created by hand on unix if that helps :P
 
@FredNurk has found the place for @drlouielouierd to go
 
10:42 AM
thanks fred
 
@drlouielouierd though it sounds like you should post a question on SO
 
As always, Fred has the answer!
2
 
Fred's are good for this world :)
 
by the powers of two Freds combined...
 
Finally, C++0x will support multi-fredding!
6
 
10:46 AM
Fred ^ 2!!!
 
@Tony ^ as in exponentiation or ^ as in bitwise xor? ;-)
 
I've grown fond of **; it's less ambiguous plus actually used that way in some languages
 
@FredOverflow as exponentiation
forgot about the bitwise XOR defintion... hehe
is this a good idea with the index variable: IPConnectionThread(ClientSocket, this, index++);
doing that index++ inside this ctor?
 
avoid non-obvious modifications; whether it's obvious or not is up to you
 
just watch out for Foo(a[i],++i);
 
11:01 AM
@ChrisBecke though I can't remember if that's UB or just unspecified order
meh, too much language lawyering: doesn't matter, don't do it
 
@FredNurk Unspecified order and therefore UB. (Usually)
 
interestingly... gcc and msvc get the order different.
 
I meant unspecified as it is defined in §1.3 (or where ever defines the terms), which, I thought, couldn't be applied at the same time as UB
 
@FredNurk don't understand what you're trying to say? I'm not going to modify it, just asking
 
@Tony - thats fine
 
11:05 AM
@Tony index++ modifies index; if it does that in a non-obvious way, the code will be hard to read
 
@FredNurk yea I understand it does modify index, however what about order of evaluation inside that ctor call?
 
for example, ++ in loop increment expressions is obvious simply because it is so common
 
true
 
@Tony that order is well-defined, at least if I understand you (this is in a ctor initlalizer and you're initing a base class)?
 
@tony - how could the order matter?
 
11:06 AM
@FredNurk cool, that's all I wanted to know
@FredNurk not a base class, just itself IPConnectionThread
 
@Tony the three arguments are completely independent, so the unspecified argument evaluation order doesn't matter
 
@FredNurk ok
 
and theres always an implicit sequence call between when the parameters are pushed and the function is executed
 
@Tony well, I take that back, there might be some implicit conversions happening for the first argument which can be user code which uses the index variable... :P
 
so even if IPCT::IPCT(...) referenced index directly, it still wouldn't matter - the ++ would be done before the body was executed
 
11:09 AM
@ChrisBecke sequence point; why do you call it implicit?
 
mmm
because you can't see it but its there?
; is an explicit sequence point
as an expression terminator
 
you could say you can "see" the parens :)
shrug I just didn't understand it (and still find it confusing)
 
11:25 AM
you could i guess.
 
anybody know if there is a library (perhaps in Boost) that has TCP/IP multiple client connection already implemented? (connection pool type thing)
or do I have to create it myself?
 
11:41 AM
@Tony, take a look into the boost asio examples, IIRC (its been almost 2 years) there was an example with a server attending multiple clients.
I am not sure on the "connection pool type" of thing there, since different clients will connect from different locations I don't really thing you can have a "connection pool" unless you mean that you are working in the client and want to keep a connection pool to the server, in which case I completely misunderstood the question.
 
I think you understood it correctly – or at least I agree: "a server attending multiple clients"
 
@DavidRodríguezdribeas & @FredNurk I probably just named it wrongly... you have the right idea with 'server attending multiple clients"
 
12:08 PM
yo
 
12:26 PM
i don't really think that boost is appropriate for this
unless the boost libs do in fact wrap things
like window's IO Completion Ports
because, on windows, if you want to scale to a single server hosting >50,000 clients
IO Completion ports are just a teensy bit necessary.
 
sbi
@ChrisBecke Note that "asio" stands for "asynchronous IO".
 
but what does that mean?
WSAAsyncSelect also does async sockets on windows
but is not going to scale past a few 100 clients
 
sbi
@ChrisBecke I don't know. I've never worked with either.
 
its just that async doesn't imply scalable
and this is why I tend to downvote flippant use boost::<something> answers.
without knowing what someones requirements are
and how boost is internally implemented
its all but impossible to determine if its a good fit or not
 
sbi
@ChrisBecke While I can understand your dislike for answers that disregard ignorance re someone's requirements, "not knowing how boost is internally implemented" strikes me as, um, let's say: odd. You are using the Windows API, aren't you? Have you ever seen any spec for its implementation? What about std::vector? Do you know how that is implemented internally?
IME the less I need to know about 3rd-party code the better. What isn't mine and what I don't know I don't have to fix if it is broken.
 
12:43 PM
This does put me in a rather odd situation
normally I agree
normally I would say that this amounts to premature optimization
but
when writing a service, to handle many clients
 
@ChrisBecke when the requirements are unstated, you just have to make some assumptions; downvoting because someone violated what you perceived to be vital-but-unstated requirements just makes you look like an ass
 
it does seem sensible to bake in, as early as possible, an architecture that can scale to the requirements
 
(downvoting for a glib "use X" answer isn't the same situation :P)
 
rather than just throw some common apis at the wall as see if they stick
 
@ChrisBecke Well, the question did not seem to imply that there are tight performance issues involved, I still think that boost asio is a good start point, until further notice (i.e. performance issues and the like)
 
12:51 PM
@Fred - don't understand the link. someone looks like an ass?
 
it points to one of that David's comments, but probably doesn't work because it's not shown and you don't have chernoff's userscript installed
 
I didn't get the link either :P\
 
sbi
1:08 PM
@FredNurk Yeah, the links to comments don't work for me either. @Chris, @Amir, read the comment discussion at stackoverflow.com/questions/4848905/…. Fred's answer is absolutely correct, and that guy downvoted it on the grounds of it being not "as helpful as it could be".
@Chris I can see why Fred was reminded of this when he saw your message about downvoting boost answers because they are not helpful.
 
I think im with david on that actually.
its safe, because the windows sdk has defined it to be safe.
and you can only develop for windows, using the windows sdk, on compilers where the implementation specific details are such that the guarantees can be met.
its like COM.
you can only do COM development, in C++, using a compiler that conforms to a particular implementation detail wrt how it lays out abstract classes
 
Fred stated that it would probably work in practice. He got an upvote from me to balance the scale :P
 
The Win32 SDK in general, and COM very specifically, rely on implementation defined behaviours, that, probably, have been done in compilers that way, to ensure that they have a level of binary interop that the c++ standards committee has been to damn chicken to commit to
and hence left as implementation defined.
strictly speaking, dlls cannot be used with c++ code.
so, if someone askes if its ok to export a class from a dll
 
I don't really want to go heads on into the discussion, but there are some windows APIs that are present for more than one platform, including alpha or XBox360. Unless the API guarantees that particular reinterpret_cast, then you cannot possibly say that portability will not be an issue
 
it IS disingenuous to point out that, strictly, its not safe, because while technically correct
any c++ compiler that supports dll's, will have the implementation specific behaviours to pull that off
 
1:20 PM
In particular, the requirement is that POINT and RECT have to be layed out in exactly the same way by the compiler you use and the compiler the API was compiled with, but that does not mean that the layout of RECT is exactly the same as the layout of an array of two POINT objects.
 
The API guarantees that the POINT, and RECT structs are layed out in memory, in such a way that the RECT looks, binary wise, like two points.
 
@ChrisBecke Care to share a link?
 
btw, if anyone is bored, I'm looking for some input on stackoverflow.com/questions/4850620/latex-to-freeform-converter
 
"lpPoints [in, out]
A pointer to an array of POINT structures that contain the set of points to be converted. The points are in device units. This parameter can also point to a RECT structure, in which case the cPoints parameter should be set to 2."
 
sbi
@ChrisBecke The API cannot guarantee that. Next week I'll publish my C compiler, which runs on Windows, but does alignment different to the WinAPI. Bang!
 
1:22 PM
It can
 
sbi
The API can, however, require that a compiler does so.
 
the API guarantees that
on the basis that the API can only be implemented on compilers, that implement that
 
sbi
@ChrisBecke Please answer: How can the API guarantee that my compiler does things in a specific way?
 
:) That is why I did not want to get into it :) Anyway, the reason that holds is not because the two compilers have to lay out the object in the same way, but because the API requires the layout of RECT to be binary compatible with the layout of an array of 2 POINT
 
now we are heading into a dodgey argyment revolving around semantics
 
1:24 PM
That is, if the discussion had been from the beginning that the API requires that from the compilers based on that link it would be undisputable.
 
sbi
@DavidRodríguezdribeas Exactly. The API requires that. Any compiler you want to use to hack against that API had better fulfill that requirement.
 
The definitions of "guarantee" vs "require" aside.
the objection because the question can never be asked, except in the context of a compiler that does conform to the requirements.
blegh. that makes no sense.
 
sbi
@ChrisBecke As I wrote in my comment, the question is simply "Is such cast safe?". The question is not, "Can I do this with RECT and POINT?" And the correct answer to "Is such cast safe?" is "Not in general, although I'd expect it in your case".
 
it's an interesting discussion because semantics can always be quibbled about. i remember once remarking that the Windows API in practice determines the sizes of basic types, such as double. Then some smart-ass started talking about how that could not be true for Win64 (he was blissfully unaware the e.g. long is still 32-bits in 64-bit Windows). It is just ungood to argue with ignorants. And attempts to inform them devolve very quickly into argument. Ergo, ...
 
silly question: but I have a vector<T> of struct's that I have to iterate through in many different places, I wondered instead of having to write the same loops again each time, if there is a templated way to have one function that does the looping and you pass it a function to execute on each iteration?
 
1:37 PM
@alf - double is an interesting case
 
yes, it's called std::for_each
 
but, in theory, the windows API is decoupled from the basic type's sizes
 
@AlfPSteinbach how did I not think about that... lol
 
as long as the windows api types sizes can be met: INT, LONG, DWORD etc all need to be 32 bits
 
@ChrisBecke no. e.g. MessageBox has result type int
 
1:38 PM
Tony, use a foreach loop :P
 
@ChrisBecke yes, i'm not sure it's used anywhere directly except possibly in the VARIANT functions
i could check
it's very long ago
 
It is true that in a lot of cases the windows API does use an int
but most of them have been removed, and replaced with INT
 
yes, that's stupid, as long as at least one usage remains
 
except where the only requirement is that the basic promise of an int is met - MessageBox returns a control id, which only needs 16 bits
So, I don't think there is any naked "int" or "long" used in the windows API, that doesn't impose any size restrictions over and above what is guaranteed in the spec: at least 16 or 32 bits long respecitvly
 
1:44 PM
or, to put it another way.
The windows header files can be used on any compiler's choice of sizes for int and long
as long as there is a type, such that INT and LONG can be 32bits
 
nope. you'd pick up garbage or remove portions of values or in general have UB
the binary interface must match the compiler's type sizes
otherwise bang
 
and the binary interface is specified in terms of INT and LONG
not int, and long
 
huh, i remembered correctly, memory still OK! :-)
Converts a variant of type double to char.

HRESULT VarI1FromR8(
  double  dblIn,
  char *  pcOut
);
and so on
but as i wrote above, "ergo..."
so i'm forcefully terminating this education
sorry
 
they have been somewhat lax wrt float and double though
so ill def give you that point
 
ohai
 
1:59 PM
theres one person in the objective-c room
and no talk for hours
because some twat decided that permission needed to be granted to talk
 

« first day (107 days earlier)      last day (4833 days later) »