std.intrinsic and structs

Jaheera no at spam.com
Thu Dec 6 10:25:27 PST 2007


"Sean Kelly" <sean at f4.ca> wrote in message 
news:fj201d$261a$1 at digitalmars.com...
> Bill Baxter wrote:
>> Sean Kelly wrote:
>>> Jaheera wrote:
>>>> I had some questions about the std.intrinsic functions:
>>>>
>>>> Is it possible to do bt, bts and btr operations on ulongs as is already 
>>>> possible on uints?
>>>
>>> No.  Though I suppose there's an outside chance we will get this feature 
>>> once DMD can compile 64-bit code.
>>>
>>>> Why do the intrinsic operations not return bool, instead of 0 and -1?
>>>
>>> Walter has historically had an aversion to bool return values (opEquals, 
>>> for example) because he felt that they were inefficient.  I believe 
>>> someone once demonstrated that this isn't actually true, but I'll be 
>>> darned if I can find the thread.
>>
>> I think the thread is linked to from one of the Doc comments pages. 
>> Probably the one for wherever opEquals and opCmp are described.
>
> You're right.  I'm pretty sure it was this thread/comment.  I could have 
> sworn that Walter had replied to the one I was thinking of, but I must be 
> misremembering:
>
> http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.bugs&article_id=8005
>
>
> Sean

I see. Thanks for the clarification 




More information about the Digitalmars-d-learn mailing list