From: wojtek@power.com.pl (Wojtek Narczynski)
Subject: Re: Access to array slices?
Date: 15 Jan 2003 18:18:05 -0800
Date: 2003-01-16T02:18:05+00:00 [thread overview]
Message-ID: <5ad0dd8a.0301151818.7931f6a3@posting.google.com> (raw)
In-Reply-To: 7teV9.60727$No.7357@sccrnsc04
Hi,
> The first thing I would do is forget that the data comes from C structures,
> since from what you have described that is unimportant.
That's right.
> You could also use Ada streams.
Are they buffered or each 'Read and 'Input will result in a syscall?
There is a highly optimized C reference implementation, and I don't
want mine to stay much behind. Well, I will find out with strace
RSN...
> -- (...)
> Do_Something_With_Data( name, value );
> -- (...)
This "Something_With_Data" is many different things. This is why I
wanted a function returning an array of access to
Name_Value_Pair_Type, where name and value would be accesses to
strings.
Should I pass access to procedure there? Or declare this procedure
generic?
> In fact when dealing with a network I make it a point to put things
> into network byte order.
When it comes to network byte order, this is a good thing:
http://www.ibpaus.de/downloads/AdaStreamsInNetworkByteOrder_020326.tar.gz
I think that GNAT using this is still compatible with RM, because byte
order for streams is not defined there. Correct?
> I hope this helps,
Yes, thanks!
However, access to array slice would be something :-;
Regards,
Wojtek
next prev parent reply other threads:[~2003-01-16 2:18 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-15 1:17 Access to array slices? Wojtek Narczynski
2003-01-15 3:13 ` tmoran
2003-01-15 16:31 ` sk
2003-01-15 20:48 ` tmoran
2003-01-16 1:00 ` sk
2003-01-16 1:43 ` tmoran
2003-01-19 4:06 ` David Thompson
2003-01-15 14:44 ` Steve
2003-01-16 2:18 ` Wojtek Narczynski [this message]
2003-01-16 3:52 ` tmoran
2003-01-17 18:04 ` Warren W. Gay VE3WWG
2003-01-15 15:06 ` Stephen Leake
2003-01-16 2:02 ` Wojtek Narczynski
2003-01-16 16:18 ` Stephen Leake
2003-01-16 16:48 ` Victor Porton
2003-01-19 4:32 ` sk
2003-01-27 2:59 ` David Thompson
2003-01-24 19:02 ` Wojtek Narczynski
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox