Re: Rob, bug fix/suggestion

new topic     » goto parent     » topic index » view thread      » older message » newer message

<< Derek:
    Why can't you do this:

    While handle != -1 do
       puts(handle, "Blah")
    end while

 Bernie >>

  I could, very easily.  But, I have about 100 different puts() commands
spread out in different places in the code.  I'm trying hard to avoid using
if and while statements.
  I have already figured out the solution though.  DOH!  All I had to do was
make a custom puts command, PUTS(handle,"blah")...

global procedure PUTS(integer mode, sequence stuff)
  if mode != -1 then
    puts(mode,stuff)
  end if
end procedure

  DOH! that was pretty easy.  I still think that would be a pretty nice
feature to the language though.  One tiny stability improvement.

Derek Brown

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu