toaster to fry eggs was RE: [wellylug] Aims or Objectives

Damon Lynch damon at photo.geek.nz
Mon Apr 19 18:30:03 NZST 2004


On Mon, 2004-04-19 at 17:45, Chris Harris wrote:
> > I also can't get my toaster to fry eggs - damn. I must have bought the
> > wrong type of toaster. Perhaps if I upgrade the firmware??
> 
> #include <toaster>
> #define PLATE = "aluminium foil plate"
> 
> main(){
> 	cooker toaster;
> 	extern food eggs, oil;
> 
> 	toaster.brownness = toaster.brownness.max();
> 	PLATE += toaster;  
> 	PLATE += oil;
> 	PLATE += eggs;
> 	toaster.state = on;
> 	while(eggs != cooked){
> 		wait();
> 	}
> 	toaster.state = off;
> 	eggs.serve();
> }
> 

Dude, problem -- you coded it in C, with no error checking!  What
happens when the oil catches fire, you'll more than dump core and spill
the yoke, you'll burn your whole house down ;-)

Damon




More information about the wellylug mailing list