"the last change" for ranges

Bill Baxter wbaxter at gmail.com
Wed May 20 17:24:57 PDT 2009


On Wed, May 20, 2009 at 5:11 PM, Jason House
<jason.james.house at gmail.com> wrote:
> Bill Baxter Wrote:
>
>> On Wed, May 20, 2009 at 4:03 PM, dsimcha <dsimcha at yahoo.com> wrote:
>> > == Quote from Jason House (jason.james.house at gmail.com)'s article
>> >> IMHO, D should have a type with low size and function call overhead > like a
>> > struct as well as reference semantics like a class.
>> >
>> > What's wrong with a pointer to a heap-allocated struct?  I sometimes need what you
>> > describe, too, and I've never seen a case where this doesn't do the job.
>>
>> And you can alias Foo_* Foo, so that it doesn't even look like you're
>> passing around a pointer.  :-)
>>
>>
>> --bb
>
> Interesting thought. Wouldn't calls to new still require use of Foo__?

Yes.  Also if you're creating 'em on the stack.

--bb



More information about the Digitalmars-d mailing list