Re:Symbolics Genera - The Best Software Environment Available
by sedachv on Sunday November 07, 2010 @01:08AM
(#1878751)
I still don't see what the problem is - you know the type of memory array you're referencing into (int, byte, whatever), you know the type of pointer you're dereferencing (byte). So is the problem going to be that it will be slow? In portable CL, yes, but there's always ways to get at the implementation's array-accessing internals and fake type-displaced arrays (esp. if you have control over the internals, as this hypothetical project would).
Re:Symbolics Genera - The Best Software Environment Available
by ScottBurson on Sunday November 07, 2010 @01:20AM
(#1878837)
Well, that's a good point. In these days of high-quality open-source implementations, games can be played under the covers that would be impossible in portable CL.
The problem is, you would have to be prepared to do this anytime you're dereferencing a byte pointer. You wouldn't know at compile time whether the pointer points into byte-organized or word-organized memory.
You're right about structs, too.