Raised This Month: $ Target: $400
 0% 

What does reserved mean?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 08-31-2004 , 20:43   What does reserved mean?
Reply With Quote #1

I have public Sql:init_sql() { which retuns a sql pointer, however the compiler says warning:208: reserved
:/
Wtf? I've tried changing it to random numbers and stuff, doesnt work
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 09-01-2004 , 07:14  
Reply With Quote #2

warning 208: reserved which appears in compiler 2.6 (I also got it several times) is an old warning that was supposed to be removed from the compiler and changed to an error but CompuPhase forgot to remove the reference that still generates it.

In an older compiler (1.8.4) the warning meant:
function uses both "return;" and "return <value>;"

Now, you should get error 078 which means exactly the same. I will post on ITB Compuphase's boards about it.
__________________
hello, i am pm
PM is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 09-01-2004 , 10:58  
Reply With Quote #3

I get the same warning with this code:
Code:
stock bool:gettens(wordnumbers[], length, numberstr[]) { // warning appears on this line     new digitstr[11], bool:dont = false, bool:jumpnext = false     switch (numberstr[0]) {         case '1': {             jumpnext = true             switch (numberstr[1]) {                 case '0': digitstr = "ten"                 case '1': digitstr = "eleven"                 case '2': digitstr = "twelve"                 case '3': digitstr = "thirteen"                 case '4': digitstr = "fourteen"                 case '5': digitstr = "fifteen"                 case '6': digitstr = "sixteen"                 case '7': digitstr = "seventeen"                 case '8': digitstr = "eighteen"                 case '9': digitstr = "nineteen"                 default: digitstr = "TEENSERROR"             }         }         case '2': digitstr = "twenty"         case '3': digitstr = "thirty"         case '4': digitstr = "fourty"         case '5': digitstr = "fifty"         case '6': digitstr = "sixty"         case '7': digitstr = "seventy"         case '8': digitstr = "eighty"         case '9': digitstr = "ninety"         case '0': dont = true // do nothing         default : digitstr = "TENSERROR"     }     if (!dont)         format(wordnumbers, length, "%s %s", wordnumbers, digitstr)     return jumpnext }

With old compiler it doesn't give any warnings and works.
Johnny got his gun is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 09-01-2004 , 12:42  
Reply With Quote #4

From what it seems, it doesnt like public functions with some type of var ..
Sql: bool: etc... Can't really test atm, because I lack the compiler
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:15.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode