You could also do something like this:
[pascal]
TShip = record
case Boolean of
True: (x, y, bullets: Integer);
False: (arr[0..2] of Integer);
end;
[/pascal]
It's a bit more to write to each record but no typecasting hack.
You could also do something like this:
[pascal]
TShip = record
case Boolean of
True: (x, y, bullets: Integer);
False: (arr[0..2] of Integer);
end;
[/pascal]
It's a bit more to write to each record but no typecasting hack.
Signature:
<br />This is a block of text that can be added to posts you make. There is a 255 character limit
Bookmarks