Re: [Vala] readline from a FileStream?
- From: Jamie McCracken <jamie mccrack googlemail com>
- To: Frederik <scumm_fredo gmx net>
- Cc: vala-list gnome org
- Subject: Re: [Vala] readline from a FileStream?
- Date: Sun, 15 Jun 2008 11:51:16 -0400
On Sun, 2008-06-15 at 11:10 +0200, Frederik wrote:
I have filed a bug report / feature request:
http://bugzilla.gnome.org/show_bug.cgi?id=538405
To make clear what you're currently doing I have slightly modified your
code. Your code works as long as you won't do any other operation
than assignment on 'next_line'. Perhaps valac should warn when using an
existing type name as a generic type placeholder.
PS: If you use a newer version of Vala/libgee you'll have to mark the
return type of Iterable.get() as nullable:
public G? get() { ... }
yeah this is neat - it would be nice once that bug is fixed to get this
into libgee along with the other iterables (hopefully Juerg agrees?)
btw i would name the class TextFile rather than FileIter and limit it to
text based files as I dont think you would want to iterate over binary
files
jamie
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]