The Artima Developer Community
Sponsored Link

Java Buzz Forum
Use bound script param in Groovy gstring

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
josef betancourt

Posts: 262
Nickname: averagejoe
Registered: Mar, 2013

josef betancourt is developer using Java and other stuff
Use bound script param in Groovy gstring Posted: Oct 19, 2013 6:03 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by josef betancourt.
Original Post: Use bound script param in Groovy gstring
Feed Title: T. C. Mits
Feed URL: http://octodecillion.com/feed/
Feed Description: Java development and other technology topics
Latest Java Buzz Posts
Latest Java Buzz Posts by josef betancourt
Latest Posts From T. C. Mits

Advertisement
In Groovy you can pass in variables using a Binding when evaluating an expression using GroovyShell. The code below illustrates this. Except the last use case. An attempt is made to access the bound variable in a gstring directly. Apparently it is only accessible by the actual binding. Executing the above results in: My puzzler [...]

Read: Use bound script param in Groovy gstring

Topic: Java: Incrementally read/stream a CSV file Previous Topic   Next Topic Topic: Polyglot Programming in the JVM

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use