But pointer are always a source of errors.
Only use them when it's unavoidable.
If you can do the same without pointers then don't use them. ;-)
Of course, if you just use pointers because others do, indeed they might
be...
No comment.
A.
___
fpc-p
dhkblas...@zeelandnet.nl schrieb:
> edge_list[edge_count - 1].v1 := v1; //< after this line the
value of v1^.x suddenly is changed!!??!!
Could it be that you do something else with "edge_list" before the
assignment?
Keep in mind that "edge_list" is a dynamic array and therefore a point
On Tue, 10 Apr 2012 18:08:04 +0200
dhkblas...@zeelandnet.nl wrote:
>
>
> I have some issues when assigning a pointer to a pointer variable.
> Consider this:
>
> TVertex = record
> x: double;
> y: double;
> end;
>
> PVertex = ^TVertex;
>
> TEdge = record
> v1: PVertex;
> v2: PVertex
I have some issues when assigning a pointer to a pointer variable.
Consider this:
TVertex = record
x: double;
y: double;
end;
PVertex = ^TVertex;
TEdge = record
v1: PVertex;
v2: PVertex;
end;
I have assigned a value to a vertex variable. In my code I have an
array of TEdge. When