« 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,

Cool, good to know that.

René

> -----Original Message-----
> From: tugwilson [mailto:tug@...]
> Sent: woensdag 5 maart 2008 10:49 AM
> To: user@...
> Subject: RE: [groovy-user] POC Release Announcement for
> Guilder Build Project
>
>
>
>
> Bloois, Rene de wrote:
> >
> >
> > John,
> >
> > I'm sure you meant to write
> >
> > a = 2
> >
> > for the second assignment to a :)
> >
>
>
> You are quite right, thanks for the correction (I had not had
> my first coffee when I posted that!)
>
> John Wilson
>
> PS
>
> there is another use of Closures in GStrings which is
> slightly more specialised.
>
> If you embed a closure with a single parameter then it is
> called with a Writer as the parameter every time the GSting
> is evaluated. Characters write to the Writer will be embedded
> in the resultant String.
>
> This combines with the behaviour of GStings when they are
> passed to a Writer (the individual elements of the GString
> are written in order to the Writer rather than evaluating the
> GString to a String and writing that to a Writer).
>
> The effect is that you can create GStrings which consist of
> very large amounts of data (gigabytes) but which can be
> written out without consuming excessive amounts of memory.
>
> One use for this mechanism is to produce a GString which
> includes the contents of a file without having to read all
> the file into memory before writing it out.
>
>
>
>
> --
> View this message in context:
> http://www.nabble.com/POC-Release-Announcement-for-Guilder-Bui
> ld-Project-tp15843091p15846658.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