Message Board
Message Board > Fenix / Bennu / Gemix / DIV > Fenix 0.89b :)) |
March 5, 2007, 00:37 | |
Transdiv
Whiskered 38 posts |
0.89b - Fixed the prototyping of Processes/Functions. - Several corrections in the scroll mechanism. - Function "move_scroll()" enabled. - Fixed the file opening in Windows Vista. http://sourceforge.net/project … ?group_id=2714 Don't get upset with Juan; Remember he is using us as beta testers ____________ |
# |
March 5, 2007, 01:09 | |
Rincewind
programmer 1546 posts |
Quote: Don't get upset with Juan; Remember he is using us as beta testers :) I hope I didn't make that impression in my last post - Juan is a hero, naturally. Just thinking along. Good it's being made Vista compatible. We wouldn't want another DIV drama. ____________ Personal website: http://www.loijson.com |
# |
March 5, 2007, 02:00 | |
Sandman
F3n!x0r 1194 posts |
Yes, a lot of good news. PNGs are awesome. Also: what is the main idea behind the DECLARE thingy? ____________ BennuWiki Yes, my avatar has grey borders in IE (so get a decent browser) ROOFLEZ ROOFLEZ |
# |
March 5, 2007, 11:12 | |
Transdiv
Whiskered 38 posts |
Quoting Sandman: Also: what is the main idea behind the DECLARE thingy? The PUBLICS are like LOCALS but exclusive for one type of process. The difference with PRIVATES is that they can be accesed by another processes. Because PUBLICS unlike the LOCALS, are not common to all processes, if you have a process A that access the public of a process B; You must define first process B so process A can "see" that public. Like Rincewind said, it would be ideal that the compiler itself see that publics, but looks it is not so easy to implement that in the compiler (at least at this stage). So if your process B is defined later in the source code, you must DECLARE it first to process A in the source so process A can know the PUBLICS from process B. [Edited on March 5, 2007 by Transdiv] ____________ |
# |
March 5, 2007, 13:20 | |
Sandman
F3n!x0r 1194 posts |
Thanks.
____________ BennuWiki Yes, my avatar has grey borders in IE (so get a decent browser) ROOFLEZ ROOFLEZ |
# |
March 5, 2007, 17:00 | |
Transdiv
Whiskered 38 posts |
Here is an Example : Code: PROGRAM Example; DECLARE PROCESS Two() PUBLIC Public_1; PRIVATE Private_1; END END GLOBAL ID_1; TWO ID_2; // You must declare it of type Two LOCAL Local_1; BEGIN ID_1 = One(); ID_2 = Two(); Write_var( 0, 20, 10, 4, ID_1.Local_1 ); Write_var( 0, 20, 30, 4, ID_2.Local_1 ); Write_var( 0, 20, 50, 4, ID_2.Public_1 ); WHILE ( !Key( _Esc ) ) Frame; END END //--------------------------------------- PROCESS One() BEGIN IF ( Exists( ID_2 ) ) // ID_2.Private_1 = 30; // This would give an Error ID_2.Public_1 = 30; END WHILE ( !Key( _Esc ) ) Frame; END END //--------------------------------------- PROCESS Two() // You can't declare variables here ; That // was doed above in the declaration. BEGIN Private_1 = 15; Public_1 = 25; Local_1 = 10; ID_1.Local_1 = 20; WHILE ( !Key( _Esc ) ) Frame; END END BTW : The last version have problems with the music (*.sm3), Juan is trying to fix it. ____________ |
# |
Message Board > Fenix / Bennu / Gemix / DIV > Fenix 0.89b :))