Compondo poemas em Java

3 respostas
T

Achei isto em um blog.

/*
*   This is not code.
*/
float on(short poem, double meaning) {
   float away, home;

   // A poem should not have a greater meaning than itself.
   while(meaning >= poem) {
       // reduce meaning until it fits in poem.
       meaning -= poem;
   }

   away = poem - meaning;

   home = !away;

   return home;
}

3 Respostas

victorwss
thingol:
Achei isto em um blog.
/*
*   This is not code.
*/
float on(short poem, double meaning) {
   float away, home;

   // A poem should not have a greater meaning than itself.
   while(meaning >= poem) {
       // reduce meaning until it fits in poem.
       meaning -= poem;
   }

   away = poem - meaning;

   home = !away;

   return home;
}

Infelizmente o poema não compila. Seria melhor se o poema compilasse e fizesse alguma coisa (houve um programa no IOCCC que era assim).

T

De fato, “home = !away” deve compilar apenas em C, pelo que imagino.

leoramos

Comentário já entregava hehe

/* 
*   This is not code. 
*/
Criado 19 de agosto de 2008
Ultima resposta 20 de ago. de 2008
Respostas 3
Participantes 3