« Return to Thread: POC Release Announcement for Guilder Build Project

RE: POC Release Announcement for Guilder Build Project

by Bloois, Rene de :: Rate this Message:

Reply to Author | View in Thread


John,

I'm sure you meant to write

a = 2

for the second assignment to a :)

Btw, thx, I didn't know that yet.

Greetz,
René

> -----Original Message-----
> From: tugwilson [mailto:tug@...]
> Sent: woensdag 5 maart 2008 08:26 AM
> To: user@...
> Subject: Re: [groovy-user] POC Release Announcement for
> Guilder Build Project
>
>
>
>
> Mad Andy wrote:
> >
> >  This project contains deferred GString evaluation because
> the data is
> > not available when the GString is created and I did not
> want to force
> > the user not to use double quotes.
> >
>
> Hi!
>
> Can you give us a bit more detail about this? It sounds a
> little like the use of Closures in GStrings which allows you
> to do things like this:
>
> def a = 1
> def s1 = "${a}"
> def s2 = "${->a}"
> a = 1
> println s1
> println s2
>
> prints
> 1
> 2
>
> i.e. if you embed zero parameter Closures in a GString the
> closure is evaluated every time the GString is evaluated and
> the result of the Closure is embedded in the resulting string.
>
> John Wilson
>
>
> --
> View this message in context:
> http://www.nabble.com/POC-Release-Announcement-for-Guilder-Bui
ld-Project-tp15843091p15844627.html

> Sent from the groovy - user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>
>

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: POC Release Announcement for Guilder Build Project