Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Love4Boobies
Member
Posts: 2111 Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania
Post
by Love4Boobies » Tue Aug 02, 2011 9:25 pm
gravaera wrote: Yo:
stripped
--Peace out
gravaera
I think I found your picture
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[
Project UDI ]
immibis
Posts: 19 Joined: Fri Dec 18, 2009 12:38 am
Post
by immibis » Tue Aug 02, 2011 9:40 pm
Owen wrote: The method that makes sense to me is...
Code: Select all
Class::Class()
{
tryAndDoSomeInitializationStuff();
if(thatFailed) throw SomeException(maybeWithSomeInformation);
}
i.e. using the language as intended, and letting RAII clean up afterwards
He said he didn't have support for exceptions. Since he said he wants to stop initialising (i.e. panic) if there's an error, I'd just do this: (where panic(const char*) is the kernel panic function that displays a message and loops forever)
Code: Select all
Class::Class()
{
tryAndDoSomeInitializationStuff();
if(thatFailed) panic("Unable to initialize stuff");
}
Brynet-Inc
Member
Posts: 2426 Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:
Post
by Brynet-Inc » Tue Aug 02, 2011 11:58 pm
Love4Boobies wrote: I think I found your picture
Hey, that's racist
.
Twitter: @canadianbryan . Award by smcerm, I stole it. Original was larger.
Solar
Member
Posts: 7615 Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:
Post
by Solar » Wed Aug 03, 2011 1:40 am
What, the picture or the "Yo!"?
Every good solution is obvious once you've found it.
gravaera
Member
Posts: 737 Joined: Tue Jun 02, 2009 4:35 pm
Location: Supporting the cause: Use \tabs to indent code. NOT \x20 spaces.
Post
by gravaera » Wed Aug 03, 2011 4:30 am
I think it's just a L4B thing
17:56 < sortie> Paging is called paging because you need to draw it on pages in your notebook to succeed at it.