Board index » delphi » Wish: assign type pointers like procedure pointers.
Skybuck Flying
![]() Delphi Developer |
Wed, 24 Aug 2005 09:13:38 GMT
Wish: assign type pointers like procedure pointers.
Hi,
Like in graphics you might have this problem of graphics cards using like blue first, then green then red then alpha.. type Tpixel2 = packed record // type2 It would be cool if the progam can determine the right layout... and then Now that's impossible ? The programmer could do typcasting and if statements Yet it would be more efficient to switch to the right type at startup and So sometimes P : Tpixel1; will be used and sometimes But the programmer can still use without needing case statements etc.. |