Google Groups Home
Help | Sign in
pequeno bug
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
AkitaOnRails  
View profile
 More options Apr 22, 4:08 pm
From: AkitaOnRails <fabioak...@gmail.com>
Date: Tue, 22 Apr 2008 13:08:56 -0700 (PDT)
Local: Tues, Apr 22 2008 4:08 pm
Subject: pequeno bug
Julio, ou alguém que esteja mais disponivel, alguém poderia checar
isso?

Akita,

eu estava acompanhando a tradução do livro Learn To Program que vcs
traduziram e ao executar o programa-exemplo do cap. 5 com srand 0 o
valor retornado é "pré-definido", como acontece com o srand 1776 ou
qualquer outro valor.

"Pré-definido" que eu quis dizer é que toda vez que o programa é
executado os mesmos valores são mostrados.

Um outro erro foi detectado no programa-exemplo sobre while, no cap.
6.

<code>
comando = ''
while comando != 'tchau'
puts comando
comando = comando.gets.chomp
end

puts 'Volte logo!'
</code>

ERROR: loop.rb:5: private method `gets' called for "":String
(NoMethodError)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Reginaldo L. Russinholi  
View profile
 More options Apr 22, 7:24 pm
From: "Reginaldo L. Russinholi" <bagr...@gmail.com>
Date: Tue, 22 Apr 2008 20:24:05 -0300
Local: Tues, Apr 22 2008 7:24 pm
Subject: Re: [projeto-learn-to-program-pt-br:136] pequeno bug

Olá Akita, o capítulo 6 eu já acertei, agora o capítulo 5 não consegui
simular o problema.

Em 22/04/08, AkitaOnRails <fabioak...@gmail.com> escreveu:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fabio Akita  
View profile
 More options Apr 22, 9:31 pm
From: Fabio Akita <fabioak...@gmail.com>
Date: Tue, 22 Apr 2008 22:31:41 -0300
Local: Tues, Apr 22 2008 9:31 pm
Subject: Re: [projeto-learn-to-program-pt-br:137] Re: pequeno bug

Valeu Reginaldo! Foi bem rápido :-)

Julio, tem como subir a atualização?

On Apr 22, 2008, at 8:24 PM, Reginaldo L. Russinholi wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google