Re: [hlds] Re: bug in srcds and hlds
It seems that both - my initial question and my answer to you were not precise. Let me try to provide better wording for my point. Your example shows comment statement which, as any other statement, requires ending semicolon. It cannot be terminated with end of line. On other hand C++-style single-line comments as well as comments in UNIX-style configuration files are terminated with end of line only. My point is that I never saw a comment expression which can be terminated with either one and I believe that the only example of such strange behaviour around is Quake-inherited parser of .cfg files. Regads, Roman On 12/06/06, Team Pfeffer [EMAIL PROTECTED] wrote: Don't be thrown by the quotes - they're not required. If you want to get pedantic, let's go with ALGOL-60, and quote the commands instead: 'comment' anything after comment is a comment; 'integer' a, b; I knew you'd bristle at the answer, but I thought you'd have picked on the semi-colon. Oh well. -b On 6/12/06, Roman Hatsiev [EMAIL PROTECTED] wrote: Nice try, Bobby, but your example does not fit into my question since comment here requires ending quote, in other words - special closing tag I mentioned before. Sorry. Anyway, I give up. Alfred, thanks for your response. Your reason is good and I'm ready to accept it though I don't think that anyone actually relies on this behaviour. But we have someone new to blame here which is good! And that someone is John Carmak which is great! Regards, Roman ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
Re: [hlds] Re: bug in srcds and hlds
Nice try, Bobby, but your example does not fit into my question since comment here requires ending quote, in other words - special closing tag I mentioned before. Sorry. Anyway, I give up. Alfred, thanks for your response. Your reason is good and I'm ready to accept it though I don't think that anyone actually relies on this behaviour. But we have someone new to blame here which is good! And that someone is John Carmak which is great! Regards, Roman ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
Re: [hlds] Re: bug in srcds and hlds
Don't be thrown by the quotes - they're not required. If you want to get pedantic, let's go with ALGOL-60, and quote the commands instead: 'comment' anything after comment is a comment; 'integer' a, b; I knew you'd bristle at the answer, but I thought you'd have picked on the semi-colon. Oh well. -b On 6/12/06, Roman Hatsiev [EMAIL PROTECTED] wrote: Nice try, Bobby, but your example does not fit into my question since comment here requires ending quote, in other words - special closing tag I mentioned before. Sorry. Anyway, I give up. Alfred, thanks for your response. Your reason is good and I'm ready to accept it though I don't think that anyone actually relies on this behaviour. But we have someone new to blame here which is good! And that someone is John Carmak which is great! Regards, Roman ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
Re: [hlds] Re: bug in srcds and hlds
-- [ Picked text/plain from multipart/alternative ] It's definately not a bug. Semicolons are used in unix to terminate lines. hostname my server;sv_password scrim;sv_maxupdaterate 100;mp_timelimit 60; above is the same exact thing as below hostname my server sv_password scrim sv_maxupdaterate 100 mp_timelimit 60 On 6/11/06, Roman Hatsiev [EMAIL PROTECTED] wrote: I would suggest leaving such decisions to Valve. I found a problem, I reported it, that's all. As a programmer I'm very familiar with temptation to classify bug as a feature and even find some use for it but this is not right. So let's just wait for Alfred's word on this. Regards, Roman On 6/10/06, Chris Bass [EMAIL PROTECTED] wrote: None of us are denying it's unnatural but really, what's the point of going on about this one? It's not like .cfg files have size limit so I doubt anyone will run into this problem in real world situation. Your 15 year programmer so you should understand about bugs that are bugs but not worth the time to fix it because chance of user coming across the bug is extremely low. Roman Hatsiev wrote: Gentlemen, As soon as you give me an example of single-line comment terminating with anything else but end of line - I'll give up on this one. I appreciate your kind attempts to adapt me to this strange behaviour but it won't work with fifteen years of my programming background. Sorry. Regards, Roman ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
Re: [hlds] Re: bug in srcds and hlds
Kevin Harrison wrote: -- [ Picked text/plain from multipart/alternative ] It's definately not a bug. Semicolons are used in unix to terminate lines. hostname my server;sv_password scrim;sv_maxupdaterate 100;mp_timelimit 60; above is the same exact thing as below hostname my server sv_password scrim sv_maxupdaterate 100 mp_timelimit 60 Yes but what he says is that in most languages, semicolons do NOT terminate comments started by double slashes //. To continue a line normally after a comment, /* comment */ instruction; instruction;.. should be used as a standard. However I won't agree when it's said that it's a bug, HL scripting in cfg files isn't really a language, just a compilation of instructions (var sets and commands), without any logical structures (don't know how you call it, I don't code in english xD, so, you know, if, else and all that stuff ^^). And what would the problem be to rearrange your code? It shouldn't take so much time ;). thyb' ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
RE: [hlds] Re: bug in srcds and hlds
-- [ Picked text/plain from multipart/alternative ] 15 years, I should say you should be giving us examples, I can think of a few, but the most prevalent to this would have to be Valves common input/output function (Notice: I am not referring to a programming language here, because this is not dependent upon any programming language, but rather Valves own internal set of rules). It's not hard to see why the common function of input accepts ; as a line terminations, It's also not hard to understand why what your referring to is not a bug, but rather a normal acceptance of the common input function. Dustin Tuft From: [EMAIL PROTECTED] To: hlds@list.valvesoftware.com Subject: [hlds] Re: bug in srcds and hlds Date: Sat, 10 Jun 2006 22:05:02 -0700 Gentlemen, As soon as you give me an example of single-line comment terminating with anything else but end of line - I'll give up on this one. I appreciate your kind attempts to adapt me to this strange behaviour but it won't work with fifteen years of my programming background. Sorry. Regards, Roman ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
RE: [hlds] Re: bug in srcds and hlds
This behavior is by design, commands are tokenized on the ';' character as well as newlines. I believe this code actually came from the Quake 1 engine (it hasn't changed between HL1 and Source). This isn't a bug and I wouldn't want to change it at this point as we have millions of scripts written for our engines and we wouldn't want to break them for a semantic change. - Alfred Roman Hatsiev wrote: I would suggest leaving such decisions to Valve. I found a problem, I reported it, that's all. As a programmer I'm very familiar with temptation to classify bug as a feature and even find some use for it but this is not right. So let's just wait for Alfred's word on this. Regards, Roman On 6/10/06, Chris Bass [EMAIL PROTECTED] wrote: None of us are denying it's unnatural but really, what's the point of going on about this one? It's not like .cfg files have size limit so I doubt anyone will run into this problem in real world situation. Your 15 year programmer so you should understand about bugs that are bugs but not worth the time to fix it because chance of user coming across the bug is extremely low. Roman Hatsiev wrote: Gentlemen, As soon as you give me an example of single-line comment terminating with anything else but end of line - I'll give up on this one. I appreciate your kind attempts to adapt me to this strange behaviour but it won't work with fifteen years of my programming background. Sorry. Regards, Roman ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
Re: [hlds] Re: bug in srcds and hlds
Ok, I'll bite. Here's an example of a single-line comment which terminates on anything other than an end of line: comment my comment; begin integer a, b (...) the language is ALGOL. Comments terminate on semi-colons. I hope you'll keep your end of the deal. -bobby p.s. Sorry for disturbing you on friday afternoon, Alfred. =) On 6/10/06, Roman Hatsiev [EMAIL PROTECTED] wrote: Gentlemen, As soon as you give me an example of single-line comment terminating with anything else but end of line - I'll give up on this one. I appreciate your kind attempts to adapt me to this strange behaviour but it won't work with fifteen years of my programming background. Sorry. Regards, Roman ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
Re: [hlds] Re: bug in srcds and hlds
None of us are denying it's unnatural but really, what's the point of going on about this one? It's not like .cfg files have size limit so I doubt anyone will run into this problem in real world situation. Your 15 year programmer so you should understand about bugs that are bugs but not worth the time to fix it because chance of user coming across the bug is extremely low. Roman Hatsiev wrote: Gentlemen, As soon as you give me an example of single-line comment terminating with anything else but end of line - I'll give up on this one. I appreciate your kind attempts to adapt me to this strange behaviour but it won't work with fifteen years of my programming background. Sorry. Regards, Roman ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
Re: [hlds] Re: bug in srcds and hlds
-- [ Picked text/plain from multipart/alternative ] It's not a bug, it's a FEATURE! :D On 6/11/06, Chris Bass [EMAIL PROTECTED] wrote: None of us are denying it's unnatural but really, what's the point of going on about this one? It's not like .cfg files have size limit so I doubt anyone will run into this problem in real world situation. Your 15 year programmer so you should understand about bugs that are bugs but not worth the time to fix it because chance of user coming across the bug is extremely low. Roman Hatsiev wrote: Gentlemen, As soon as you give me an example of single-line comment terminating with anything else but end of line - I'll give up on this one. I appreciate your kind attempts to adapt me to this strange behaviour but it won't work with fifteen years of my programming background. Sorry. Regards, Roman ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds -- ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds