Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Requests and Feedback

type-check system

A community discussion post from the original code:zIRON forum.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

type-check system

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

Replies

Colin admin
Posts
928
Threads
49
Location
Bulgaria

which type-checking in ziron are you referring to?

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

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

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

Colin admin
Posts
928
Threads
49
Location
Bulgaria

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 :)

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

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

Colin admin
Posts
928
Threads
49
Location
Bulgaria

There should be no problem :)