Re: can there be a "with" construction?

Jacob F. wrote:

reinterprets it as system.startup.license, which works. In
there a way to bend the language to that it acts like this? Thx - m.

  1. it stops execution of the block after redispatching the
    first exception:

with(Time) do
puts “Never get here”
end # nothing printed

Jacob F.

Hmm… I must have misunderstood the OP. I somehow thought that in
“those” languages string(license) translates to calling method “license”
on “string”, hence the solution. My bad, sorry.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs