struct inheritance need?

Weed resume755 at mail.ru
Sun Dec 21 09:37:09 PST 2008


Weed пишет:
> Kagamin пишет:
>> Weed Wrote:
>>
>>>> Sure he wants. From my point of view, this technique is supposed to 
>>>> be a means to solve some problem rather than problem itself. But 
>>>> this problem was not put.
>>> please read it thread:
>>> http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=80945 
>>>
>>
>> The problem of matrix of arbitrary size is solved by size-agnostic 
>> base class whose interface is very similar to that of dynamic matrix.
> 
> If 2 predetermined matrix certain size multiplied, the produced matrix 
> must be a certain size rather than dynamic.

...and a matrix of static size in the same used in other objects - 
matrix functional mixed into this objects by mixin.

that is, suppose that after some action should get a matrix matrix3x1

You can not assign it to "pixel" struct, you will receive matrix3x1 and 
make copy of "pixel".


More information about the Digitalmars-d-learn mailing list