Possible compiler regression for default function

Hi Remobjects

With Elements compiler 10.0.0.2255, though I suspect this has been an issue since version 10 came out, only just found the problem.

Seems if you assign to a variable of type Object the value default(valuetype) it sets it to nil instead of the default value

ie
var x: Object := default(Int32);
x ends up being nil instead of 0

Alex

Thanks, logged as bugs://79907

That’s wrong yes. Which platform is this?

bugs://79907 got closed with status fixed.

this was fixed a few weeks ago. Latest beta works

Hi Carlo
There doesn’t seem to be a latest beta available to download for Elements for Windows, just the current stable 10.0.0.2265, which has those problems I mentioned the other day

Alex

at https://secure.remobjects.com/portal/downloads/elements.aspx there’s both stable and preview builds.

the only options under preview are
RemObjects Elements - Mac and Linux Zip Distro - 10.0.0.2269— Fri, Mar 30, 2018 [Change Log]
RemObjects Elements with Water - 10.0.0.2269— Fri, Mar 30, 2018 [Change Log]
RemObjects Fire - 10.0.0.2269— Fri, Mar 30, 2018 [Change Log]

I just want the normal Elements you use with VS

RemObjects Elements with Water is the one you want, then.

Thanks Marc
That latest compiler worked

Alex

1 Like

I’d place the Zip Distro at the bottom. Also, maybe adding “Mac” and “Windows” to the Water and Fire links would help.

it’s alpha-sorted by name :wink:

yeah, maybe. I’ll have a look at how to best do that within the website logic, w/o actually having to change the distro file names…

Zip Distro: RemObjects Elements - Mac and Linux :wink:

1 Like