[FoRK] PhD

Sat N sateesh.narahari
Thu Oct 13 13:25:34 PDT 2005


compile errors:

cl2435: 'soul' declared private - grad_school not a friend
c1342: STARTUP - use of deprecated constant
c5453: warning 'write_parper' does not return



On 10/13/05, Adam L Beberg <beberg at mithral.com> wrote:
>
> 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/
> _______________________________________________
> FoRK mailing list
> http://xent.com/mailman/listinfo/fork
>



More information about the FoRK mailing list