Register | Login
Forum Index > Requests and Feedback > type-check system
Author Message
Pages: 1
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[105] type-check system - posted: 2011-10-24 09:50:20
hi

sometime , when programing with asm low level , there is no need to make a type-check checking.

so you can use #TypeCheck On , or #TypeCheck Off directive for switching between two modes.

Emil.

http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[107] - posted: 2011-10-24 10:58:23
which type-checking in ziron are you referring to?

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[108] - posted: 2011-10-24 19:16:41

I was talking about Type_checking of function parameters and procedure parameters.


http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[111] - posted: 2011-10-24 20:34:10
Ziron already allows you to call a function with any type of data as a parameter as long as it is a valid pushable type smile

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[112] - posted: 2011-10-24 20:43:02

ok , i will give you an example.

suppose you have the next function

function balbal(char ch, int32 i , char* name)

so you can call it as usual

char mychar = 'c';
int32 k = 10;
char* myname = 'Emil';

balbal(mychar,k,myname);

so when calling it like this

dword k =10;
dword add = @myname;

balbal(mychar,k,add);

it is ok or the compiler will fire type miss matching error

Emil.

http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[115] - posted: 2011-10-25 15:26:17
There should be no problem smile

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 6 user(s) online. 0 member(s) and 6 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