# Re: can there be a "with" construction?

**URL:** <https://www.ruby-forum.com/t/re-can-there-be-a-with-construction/73893>\
**Category:** Ruby\
**Created:** [October 27, 2006, 8:36pm UTC](https://www.ruby-forum.com/t/re-can-there-be-a-with-construction/73893 "2006-10-27T20:36:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gennady\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c57346/32.png) [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Post date:** [October 27, 2006, 8:36pm UTC](https://www.ruby-forum.com/t/re-can-there-be-a-with-construction/73893/1 "2006-10-27T20:36:14Z")

</div>

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  
> “aaa”.now  
> 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.

Gennady.
