Hi,Randall!
I have a problem when i want to push a label address.
Such instruction as
? pushd(&lbl_test);
generates masm statement something like
? pushd 01dbeea8h
instead of
? push offset32 lbl_test

Also it seems that overriding fields in inherted records doesn't work:
event_t: record;
data_ptr: dword;
code_ptr: dword;
endrecord;

on_event_t: record inherits(event_t);
overrides code_ptr: procedure (sender: dword);
endrecord;
Error:
Attempted to override an undefined identifier.
Near: << code_ptr >>

An example from HLA reference also doesn't work :-(.
Posted on 2005-03-23 03:19:14 by Elohim Meth
Okay, I'll take a look at these problems when I work on the v1.75 release early next week.

BTW, if anyone else has some bugs to report in HLA v1.74, now is the time to do so. I'm currently finishing up the port of the ADK to Linux and once that's complete I'll get started on the HLA v1.75 release.  Even if you've reported a problem before, reminding me would be a good idea (it's amazing how much information gets lost when you receive about 1,000 SPAM emails a week).
Cheers,
Randy Hyde
Posted on 2005-03-23 09:18:22 by rhyde

Hi,Randall!
I have a problem when i want to push a label address.
Such instruction as
? pushd(&lbl_test);
generates masm statement something like
? pushd 01dbeea8h
instead of
? push offset32 lbl_test

Also it seems that overriding fields in inherted records doesn't work:
event_t: record;
data_ptr: dword;
code_ptr: dword;
endrecord;

on_event_t: record inherits(event_t);
overrides code_ptr: procedure (sender: dword);
endrecord;
Error:
Attempted to override an undefined identifier.
Near: << code_ptr >>

An example from HLA reference also doesn't work :-(.


I've corrected the two problems you've mentioned above. As for the example from the HLA reference, which one?
(it's quite possible that the language has changed and that's why the example doesn't work any more; this has been a problem in the past).
Cheers,
Randy Hyde
Posted on 2005-03-24 11:36:09 by rhyde
This example from hlaref.html generated in my case the same error:

In some special situations you may want to override a field from a previous field declaration. For example, consider the following record declarations:
BaseRecord:
record
a: uns32;
b: uns32;
endrecord;

DerivedRecord:
record inherits( BaseRecord )
b: boolean; // New definition for b!
c: char;
endrecord;
Posted on 2005-03-25 13:08:14 by Elohim Meth