From: Samuel Tardieu <sam@rfc1149.net>
Subject: Re: Overriding the "lowest level" stream procedures
Date: Sun, 11 Oct 2009 17:39:59 +0200
Date: 2009-10-11T17:40:02+02:00 [thread overview]
Message-ID: <87tyy6c52o.fsf@willow.rfc1149.net> (raw)
In-Reply-To: ff5f5794-61d8-4745-8d69-7bb3bab452c9@o41g2000yqb.googlegroups.com
>>>>> "xorque" == xorque <xorquewasp@googlemail.com> writes:
xorque> I think I probably need to define my own Stream type. Is this
xorque> the case?
You can plug your code at two different levels:
- define your own stream type; you will manipulate byte arrays, but
you will not have access to any type information;
- define your own stream attributes: you will decide how typed values
are transformed into/from byte arrays, but you cannot override this
choice for predefined types as you have to define those attributes
in the same declarative unit as the type definition itself.
You will likely want to use the second method, in which case you'll have
to refrain from using predefined types.
Sam
--
Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/
next prev parent reply other threads:[~2009-10-11 15:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-11 14:56 Overriding the "lowest level" stream procedures xorque
2009-10-11 15:39 ` Samuel Tardieu [this message]
2009-10-11 18:57 ` sjw
2009-10-11 19:31 ` Samuel Tardieu
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox