|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
D - Struct property bug?
I'm using DFL w/DMD ver 1.020 and receive the following compile
error's:
no property 'Data' for type 'ARINCDATA_CELL [51u]'
ArincWord is not an lvalue
ReceivedChannel is not an lvalue
Returned status code 1
Code:
alias uint ArincWord;
alias uint TimeRead;
alias short ReceivedChannel;
struct ARINCDATA_CELL
{
align(1):
short Channel;
uint Time;
uint Data;
}
.
.
.
ARINCDATA_CELL ArincData[51];
.
.
if(ArincData.Data &0xff == 203)
{
ArincWord = ArincData[i].Data;
ReceivedChannel = ArincData[i].Channel;
}
.
.
.
Tried everything I could think of but no dice.
Think its related to the "[51]" or a bug. I've seen this error
posted in the past, however none of the solutions seem to work,
unless I missed one somewhere?
Any idea's?
Todd
Oct 04 2007
|