Again about DCC CodeGen, this time featuring XE2.

Again about DCC CodeGen, this time featuring XE2.

Can you make an array with different elements types... No. Not that.
Can you even make an array with a SAME type of all the elements?

And how procedural procedure variables really are ?

All this and something else in our new adventures down the link below!
http://synopse.info/forum/viewtopic.php?pid=9625

Comments

  1. Can you make an array with different elements types... Yes! It could be for example an array of TObject and then you can use any object as element. Or an array of pointers and pointing to anything. Or an array or variant. Or an array of record with variable part.

    If you tell us exactly what you try to achieve, maybe we can tell you how to achieve it :-)

    ReplyDelete
  2. And by the way, you should upgrade your XE2 to XE5, preferably buying a maintenance contract to get the new versions automatically for a fixed price.

    ReplyDelete
  3. "If you tell us exactly what you try to achieve," Just read the thread-opening link, please. I do made an array of a single type, but DCC insists arr[0] and arr[1] are of different types, and both are wrong ones. Look, i think you didn't notices which sub-section of the community this posts landed in. I tried to be sardonic after tracking that insanity, but seems i failed.

    ReplyDelete
  4. Arioch The Sorry, the link is way to long. To much code, not enough background, not clear. Help yourself by correctly specifying what you ask.

    ReplyDelete
  5. Arioch The I don't read Russian language. Anyway, XE2 is an old compiler. Use the latest to get bug fixed.

    ReplyDelete
  6. and get others bugs that will be fixed in 3 o 4 years later, that is Embarcadero "SUPPORT".

    ReplyDelete
  7. +François Pietersen's you don't need Russian there. Just compare how Delphi calls a function (string, string) : boolean. XE & FPC: set param 1, set param 2, call func. Xe2: passing param between few temporary variables few times but eventually calling a function. Xe5: half-KB code, calling half-dozen internal functions and setting three try-finally blocks just for the single line "funcname (string1,string2)" - that is not fixing bugs, that is landslide degradation of the Delphi

    ReplyDelete
  8. François Piette you might also saw that "Russian" link discussed there - and people agree that xe5 is yet worst in that job https://plus.google.com/101175546080106411874/posts/DbYDU2KaYun

    ReplyDelete
  9. Arioch The That is truly incredible, what has happened to the generated code. No wonder I still like XE.

    ReplyDelete

Post a Comment