Re: warning: already initialized constant TmpCert_as_text



Heinrich Piard wrote:
Hi all,

I use this in a 'loop do':

validationcheck = OpenSSL::X509::Certificate
TmpCert_as_text = validationcheck.new(File.read("certs.pem")).to_text

and I get this warning message:

warning: already initialized constant TmpCert_as_text


How can I get rid of it?


bye and thanks in advance
Henry

Ruby treats a variable name that starts with an uppercase letter as a
constant. Use tmpcert_as_text instead.
--
Posted via http://www.ruby-forum.com/.

.



Relevant Pages

  • Re: warning: already initialized constant TmpCert_as_text
    ... I use this in a 'loop do': ... and I get this warning message: ... warning: already initialized constant TmpCert_as_text ... How can I get rid of it? ...
    (comp.lang.ruby)
  • warning: already initialized constant TmpCert_as_text
    ... I use this in a 'loop do': ... and I get this warning message: ... warning: already initialized constant TmpCert_as_text ... How can I get rid of it? ...
    (comp.lang.ruby)
  • Re: PHP page wants my clipboard
    ... Just tried it, and yep, in IE7 I get the warning message. ... Now the offending script uses this function. ... Then the for loop comes in: ...
    (uk.net.web.authoring)
  • Re: [PATCH] sysctl: Allow /proc/sys without sys_sysctl
    ... This could be a tough one to get rid of again). ... The question is where do I want the put the warning message? ... Probably both places at this point, and using the rate limited printk ...
    (Linux-Kernel)
  • Re: Two possible bugs (err... undocumented features) in Delphi 7.
    ... > 1) I get a warning message that a variable has been initialized but not ... Is your for loop also using Iz as there are no other variables defined? ... I have personally not come accross problems such as you have described and, ... without a full code quote, it's hard to see that this is a Delphi problem or ...
    (borland.public.delphi.nativeapi)