Why are opCall's not implicitely assignable?
Carlos Santander
csantander619 at gmail.com
Wed Sep 27 05:58:56 PDT 2006
Ivan Senji escribió:
> Karen Lanrap wrote:
> ...
> with car.roof
> {
> .topcoat = COLOR.RED;
> .undercoat = COLOR.WHITE;
> }
>
> else (it is a property of type coat):
>
> with car.roof
> {
> .topcoat.color = COLOR.RED;
> .undercoat.color = COLOR.WHITE;
> }
>
>
>>
>> (By the way: forgetting to delete a point can have desastrous results
>> in D.)
>
> What point?
What Karen is saying is that your examples should be:
with (car.roof)
{
topcoat = COLOR.RED;
undercoat = COLOR.WHITE;
}
with (car.roof)
{
topcoat.color = COLOR.RED;
undercoat.color = COLOR.WHITE;
}
--
Carlos Santander Bernal
More information about the Digitalmars-d-learn
mailing list