Packed Record type?


I have a bunch of typed structures that use packed records. Is there any plan to add a new .AddType(BLAH,fvtPacked) to enable FastScript to see packed records? I'd like to purchase FastScript but without being able to use and see the packed records from inside FastScript it is a deal breaker.

type
PBLAH = ^BLAH;
PPBLAH = ^PBLAH;
BLAH = packed record
myfirstvar: blah2;
mysecondvar: pchar;
x,y,z: longint;
end;

Alternately does anyone have any suggestions on how I could make my packed records visible to FastScript (using some other kind of class or type)?

I tried

type
TBLAH = array[1..1] of PBLAH;

or

type
TBLAH = array[1..1] of ^BLAH;

or

type
TBLAH = array[1..1] of BLAH;



and then

fsGlobalUnit.AddType('TBLAH',fvtArray);

but I get an access violation when I try to use the TBLAH ->

var
a,b: tblah;
begin
a[1]:=b[1];
end.

----

Thanks.

Comments

  • edited 4:59PM
    FastScript does not support records. Maybe next versions will do this.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.