[FoRK] PhD

Adam L Beberg beberg
Thu Oct 13 13:05:20 PDT 2005


phd * grad_school( human * student )
{
   clue idea;
   text paper;
   parchment phd;
   int count = 0;

   while ( count < lots )
   {
     student.ideas--;
     if ( get_idea( &idea ) == GREAT )
       exit( STARTUP );

     if ( test( &idea ) == PASS )
       write_paper( &paper );

     if ( accepted( &paper ) )
       count++;
     else
     {
       student.soul--;
       if ( student.soul < 0 )
         abort();
     }

     /* idea may be good but need more papers */
     discard( &idea );
   }

   /* fill name in on phd later, since noone will look */
   phd.done = YES;
   /* returning stack, this is bad. fix after SIGOPS */
   return( &phd );
}

-- 
Adam L. Beberg
http://www.mithral.com/~beberg/



More information about the FoRK mailing list