"bearophile" schrieb im Newsbeitrag
news:qqcdemwimcylaizjy...@forum.dlang.org...
> Christof Schardt:
>
>> By "trickery" I meant having to know about things like
>> "import std.exception : assumeUnique" for this basic kind of task.
>
> Your function has signature (you use "ref" instead of "in" or
Christof Schardt:
By "trickery" I meant having to know about things like
"import std.exception : assumeUnique" for this basic kind of
task.
Your function has signature (you use "ref" instead of "in" or
"out" because it performs read/write):
void rw(ref string x)
A string is a immutable(ch
"John Colvin" schrieb im Newsbeitrag
news:zjsykclxreagfhqsq...@forum.dlang.org...
> On Monday, 3 March 2014 at 22:22:06 UTC, Christof Schardt wrote:
>> "John Colvin" schrieb im Newsbeitrag
>> news:dyfkblqonigrtmkwt...@forum.dlang.org...
>>> On Monday, 3 March 2014 at 21:44:16 UTC, Christof Schar
On Monday, 3 March 2014 at 22:22:06 UTC, Christof Schardt wrote:
"John Colvin" schrieb im
Newsbeitrag
news:dyfkblqonigrtmkwt...@forum.dlang.org...
On Monday, 3 March 2014 at 21:44:16 UTC, Christof Schardt
wrote:
I'm evaluating D and try to write a binary io class.
I got stuck with strings:
On 03/03/2014 02:25 PM, Christof Schardt wrote:
> Thanks, Ali, this works.
Yay! :)
> book be equipped with a TOC and an index?
Yes, all of that will happen after I get back to working on the book and
its ever increasing list of to-dos. :)
Ali
"Ali Çehreli" schrieb im Newsbeitrag
news:lf2ude$1njf$1...@digitalmars.com...
> On 03/03/2014 01:44 PM, Christof Schardt wrote:> I'm evaluating D and try
> to write a binary io class.
> > I got stuck with strings:
> >
> > void rw(ref string x)
> > {
> > if(_isWriting)
> >
"John Colvin" schrieb im Newsbeitrag
news:dyfkblqonigrtmkwt...@forum.dlang.org...
> On Monday, 3 March 2014 at 21:44:16 UTC, Christof Schardt wrote:
>> I'm evaluating D and try to write a binary io class.
>> I got stuck with strings:
>>
>> void rw(ref string x)
>> {
>> if(_isWriti
On 03/03/2014 01:44 PM, Christof Schardt wrote:> I'm evaluating D and
try to write a binary io class.
> I got stuck with strings:
>
> void rw(ref string x)
> {
> if(_isWriting)
> {
> int size = x.length;
> _f.rawWrite((&size)[0..1]);
>
On Monday, 3 March 2014 at 21:44:16 UTC, Christof Schardt wrote:
I'm evaluating D and try to write a binary io class.
I got stuck with strings:
void rw(ref string x)
{
if(_isWriting)
{
int size = x.length;
_f.rawWrite((&size)[0..1]);
_f
I'm evaluating D and try to write a binary io class.
I got stuck with strings:
void rw(ref string x)
{
if(_isWriting)
{
int size = x.length;
_f.rawWrite((&size)[0..1]);
_f.rawWrite(x);
}
else
{
int size
10 matches
Mail list logo