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

Posts: 197
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: 925
Topics: 54

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: 197
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: 925
Topics: 54

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: 925
Topics: 54

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 4 user(s) online. 0 member(s) and 4 guest(s)
Most users ever online was 533, May 5, 2016, 7:19 am.


Statistics:
Threads: 223 | Posts: 1837 | Members: 50 | Active Members: 50
Welcome to our newest member, NobodyAtWork
const Copyright = '2011-2018 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd