Register | Login
Forum Index > Requests and Feedback > Assignment operands with different operand size
Author Message
Pages: 1
0CodErr
Ziron Guru
(send private message)

Posts: 199
Topics: 37

Location:
[1796] Assignment operands with different operand size - posted: 2015-02-26 19:29:15
This currently unsupported, but it would be useful smile
Code:
dword d1;
word w1;
byte b1;

int32 sd1;
int16 sw1;
int8 sb1;

d1 = w1;
d1 = b1;
d1 = sw1;
d1 = sb1;

w1 = d1;
w1 = b1;
w1 = sd1;
w1 = sb1;

b1 = d1;
b1 = w1;
b1 = sd1;
b1 = sw1;
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1797] - posted: 2015-02-26 23:11:58
I have partially implemented this, however, for w1 = d1; ? what would you like to happen here? to truncate the value with a warning?

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
0CodErr
Ziron Guru
(send private message)

Posts: 199
Topics: 37

Location:
[1799] - posted: 2015-02-26 23:47:00
Yes, i think that need to
truncate the value with a warning
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1801] - posted: 2015-02-26 23:52:54
OK, will add that for next release.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1827] - posted: 2015-03-19 13:16:42
Added for next release truncation.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Pages: 1
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 1 user(s) online. 0 member(s) and 1 guest(s)
Most users ever online was 1046, January 28, 2022, 2:08 pm.


Statistics:
Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51
Welcome to our newest member, yecate
const Copyright = '2011-2024 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd