On Thu, Feb 28, 2008 at 9:54 AM, Peter Bex <[EMAIL PROTECTED]> wrote: > On Thu, Feb 28, 2008 at 09:47:08AM -0500, Graham Fawcett wrote: > > Yes, input port was what I was thinking. Thanks. The input port would > > return the body of the LOB and return #!eof when it's consumed. > > > > The "Chicken blob or string" options are redundant, so the revised > > proposal is to represent a LOB with a thunk that evaluates to an input > > port. > > Why the thunk? (why not directly the port?)
Laziness: it avoids the overhead of setting up the input port if it's not required. You might want to iterate over a set of (id, name, blob) records and only open the blob if the name meets some criteria that are local to the app (i.e. can't be expressed in a WHERE clause). Best, Graham _______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users