Fixing D's Properties

Chad J gamerChad at _spamIsBad_gmail.com
Mon Aug 20 01:09:01 PDT 2007


BCS wrote:

> 
>>
>> * I realize we may have to settle for properties being "close enough"
>> to members, due to addressing.
>>
> 
> You actually could make pointers to properties work just like members by 
> placing the address of the member in invalid memory locations. Then on a 
> seg-v, check if the address is attached to a property and stuff in the 
> right value. I heard that at one point some computer systems used a 
> something like that (but using illegal op codes) to fake having a 
> floating point unit.
> 
> (BTW, I am NOT suggesting this be used <G>)
> 
> 

Pretty clever!  Too bad it seems very hardware dependent.



More information about the Digitalmars-d mailing list