|
I've heard of that, but if you're not careful, it can throw some nasty exceptions on the floor.
You can pick your friends, and you can pick your nose, but you can't pick your friend's nose.
|
|
|
|
|
|
Anonymous wrote:
My wife. I'd like to extend her by creating a GoesToWork class.
You don't need a programming interface. You need to give her an ultimatum - work or get lost. I'm assuming she's not home taking care of children or is in some state physically preventing her from working.
Just my 2 ¤cy-hundredth;.
--
"And God said, Let us make man in our image"
|
|
|
|
|
Jörgen Sigvardsson wrote:
You don't need a programming interface. You need to give her an ultimatum
The member function GoToWork is an ultimatum. It's declared as:
unsigned int GoToWork() throw(std::piss_off);
If you call that method (which indeed is declared to return an unsigned integer - a positive amount of money) but it throws the listed exception, your best shot is to not handle it, but as any good code that don't know what to do with it, just pass it on...
|
|
|
|
|
Sadly, in my experience, GoToWork() is a very poorly written and resource hungry function, which seems always implimented to return void.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
It'd probably be fairly easy to make a bot that'd post random stupid VB questions, and nobody would probably ever notice - benjymous - 21-Jan-2003
|
|
|
|
|
I am still waiting for Wife.GoToWork() to be fully implemented.
In the meantime I am stuck with Wife.GoToUNI().
It calls:
UNI.Fees()
UNI.Books()
Car.GetMorePetrol()
Baby.Daycare()
Kids.AfterSchoolCare()
When I call Dad.Home() I find that Wife.HasEnergy() returns 0 so I need to call
Baby.CheckNappy() - this is very poorly written - it leaks and occasionally throws an exception.
Col
|
|
|
|
|
lmao.
Please stop, your making my face hurt with laughing...
Regards,
Simon Hughes
E-mail: simon@hicrest.net
Web: www.hicrest.net
|
|
|
|
|
funniest thing I've heard all day. My suggestion:
Dad.GetHealthDrink()
Hush,hush...
thought I heard you call my name now.
Kula Shaker.
Amit Dey
Latest articles at CP - PocketPC New menu
Office addin
|
|
|
|
|
ROTFLMAO. Thanks. I really needed a laugh like that. Great
Regards,
Brian Dela
Run naked in the snow until you're sweating like a stuck pig and can't seem to catch your breath. When the flu becomes pneumonia, they can cure that with a shot. - Roger Wright
|
|
|
|
|
You will find that Wife.GoToWork() causes Wife.WentToWork() to return true.
Also, the private variable Wife.TooTiredforSex will often be true after a call to Wife.GoToWork() and Wife.WentToWork() have returned success.
As there is no callback or interrupt handler for detecting this private property to be false, you must constantly call Wife.CanWeHaveSexNow() until the property Wife.TooTiredforSex has gone false. Sometimes Wife.SleptAllNight() will return true at the same time as Wife.TooTiredforSex has gone false.
C++/MFC/InstallShield since 1993
|
|
|
|
|
Sometimes Wife.SleptAllNight() will return true at the same time as Wife.TooTiredforSex has gone false.
Problem is most times Wife.TooTiredForSex is false at the same time as Dad.AtWork is true.
Maybe I should call Dad.TakeASickDay() and hope for the best....
Col
|
|
|
|
|
Christian Graus wrote:
Sadly, in my experience, GoToWork() is a very poorly written and resource hungry function, which seems always implimented to return void.
yet better than virtual pure.
|
|
|
|
|
Mike Nordell wrote:
unsigned int GoToWork() throw(std::piss_off);
I frequently throw the same exception, although sometimes it is thrown back recursively. Regardless of how it is caught, the firmware suffers and resources shrink. Finally, the dreaded blue-screen-of-death pops up just as the system goes down.
In my personal experience, though, I have received compiler warnings when using the unsigned int. Apparently, whether the call goes through or not, the return value can still be negative. Putting a break point on max(iIncoming, iSpent) will reveal why. In such cases, consider calling Wife.Dispose() .
|
|
|
|
|
I did that one... I ran the Wife.GivesBirth() method.
After she relaized that she had to then run the Wife.WatchesCartoonsAllDay(), Wife.FeedsChild(), and Wide.NoOneToTalkToAllDay(true) methods she was willing to jump right back into the work force
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
|
|
|
|
|
Would that lead to a revival of phreaking?
--Mike--
The Internet is a place where absolutely nothing happens.
-- Strong Bad
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Only if Microsoft is providing the APIs...
--
"And God said, Let us make man in our image"
|
|
|
|
|
Michael Dunn wrote:
Would that lead to a revival of phreaking?
You mean, you stopped ??
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
I'm guessing the concept of a 2 hour movie showing two guys eating a meal and talking struck them as 'foreign'
Rob Manderson wrote:
|
|
|
|
|
I would have voted for "All of them".
The IT is one of the last domains for which we have no other limit than our imagination (Thanks, Mr Moore )
Angels banished from heaven have no choice but to become demons
Cowboy Bebop
|
|
|
|
|
Man, you must be starved (for a good hack) if you even consider hacking your alarm clock!
|
|
|
|
|
Corto Maltese wrote:
Being able to adjust water pressure and temperature remotely on my espresso machine would be of great benefits to me.
Brewing our own ... are we?
I can’t wait until they release espresso machine + grinder with built in Wi-Fi
Then customers can "pre order" by telnetting to it?
|
|
|
|
|
Brewing our own ... are we?
Briel Multi-Pro ES-200 , but no built in Wi-Fi
|
|
|
|
|
I have wondered whether you could get a sim card type thing that you carry around or via your cell-phone that lets expresso and other coffee machines to know what your preferences are. When you have a dissatisfactory experience from a machine you could let it know as well.
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
I'm guessing the concept of a 2 hour movie showing two guys eating a meal and talking struck them as 'foreign'
Rob Manderson wrote:
|
|
|
|
|
I believe that Gaggia make said device, or have one coming out
Chris W.
|
|
|
|
|
In many cases you can already program these. For about $30 (and up) you can get one of those nifty thermostats that allow you to program different temperatures for different times of the day.
I suppose it's only a matter of time before that bad boy gets an IP address and you can program it from your computer. But then, it wouldn't be long before the virus writers took advantage of this and wrote a "deep freeze" virus...
You can pick your friends, and you can pick your nose, but you can't pick your friend's nose.
|
|
|
|
|
In many cases you can already program these.
That's not programming! I want something that has an ActiveX control, and about 100 API functions so that I can tie in the next 2 years of weather forcasts and program it to answer my wireless cell connection so that I can set the thermostat.
Oh, and it should have API functions so that I can query the amount of oil left in the tank (I live in New England) and query the stock market so I can figure out when is the best time to buy heating oil.
Now, why the hell hasn't somebody done this????
Marc
Help! I'm an AI running around in someone's f*cked up universe simulator. Sensitivity and ethnic diversity means celebrating difference, not hiding from it. - Christian Graus Every line of code is a liability - Taka Muraoka Microsoft deliberately adds arbitrary layers of complexity to make it difficult to deliver Windows features on non-Windows platforms--Microsoft's "Halloween files"
|
|
|
|