Page 1 of 1

What is the official status of 512 support?

Posted: Fri Mar 16, 2018 7:00 pm
by tacolizard
Are we allowed to use 512-exclusive features like the

Code: Select all

.?
operator or do we still need to maintain backwards compatibility?

Re: What is the official status of 512 support?

Posted: Wed Mar 21, 2018 6:11 am
by oranges
not yet, when it's more stable, we will switch to 512 compile time features being allowed.

Re: What is the official status of 512 support?

Posted: Wed Mar 21, 2018 8:37 pm
by Dax Dupont
What the fuck does .? anyways

Re: What is the official status of 512 support?

Posted: Wed Mar 21, 2018 11:04 pm
by SpaceManiac
(a.?b) is roughly equivalent to (a && a.b), except `a` is only evaluated once (as though you stored it in a variable, if it was not already).

Re: What is the official status of 512 support?

Posted: Thu Mar 22, 2018 2:11 am
by Dax Dupont
So it checks if say Weapon isn't null and weapon.force isn't either
?

Re: What is the official status of 512 support?

Posted: Thu Mar 22, 2018 9:41 pm
by Supermichael777
Its ~slightly faster~.

Re: What is the official status of 512 support?

Posted: Fri Mar 23, 2018 4:13 pm
by tacolizard
it's also more elegant.

you can do

Code: Select all

var/foo = bar?.dank
which is useful if your code is designed to handle foo being null

Re: What is the official status of 512 support?

Posted: Tue Apr 03, 2018 2:27 am
by SpaceManiac
Looks like 512-only features will now be allowed going forward.

Re: What is the official status of 512 support?

Posted: Thu Apr 05, 2018 5:55 pm
by MrStonedOne
Nope.

511 is still supported as long as the define in compile options is still 511 and not 512