Page 3 of 3
Re: StringSection / EndStringSection
Posted: Fri Jan 29, 2010 11:25 pm
by chris319
Why these control characters instead of the real thing(s)?
There is the behavior of the tab key, which in the IDE inserts a series of spaces instead of an actual tab character. With control characters you could have \t for tab, \l for line feed (ASCII 10), \r for carriage return (ASCII 13) and \n for CR + LF (with backslashes if you want to imitate C rather than the forward slash in my previous post -- too much HTML writing).
But why the = sign? We don't need that when specifying structures, for example.
A string is a variable. You assign characters to it with mystring.s = "blabla". In defining a structure you are defining a collection of variables and you assign values to the variables within it with mystructure\myvariable = 100. mystructure = 100 won't fly.
you'd have to stipulate beforehand whether the resulting string was global, local etc.
Global StringSection mystring.s = "hi"
Re: StringSection / EndStringSection
Posted: Fri Jan 29, 2010 11:47 pm
by Seymour Clufley
chris319 wrote:Why these control characters instead of the real thing(s)?
There is the behavior of the tab key, which in the IDE inserts a series of spaces instead of an actual tab character.
Ah, I'd forgotten about that. But I still don't see the need for them for linebreaks.
But why the = sign? We don't need that when specifying structures, for example.
A string is a variable. You assign characters to it with mystring.s = "blabla". In defining a structure you are defining a collection of variables and you assign values to the variables within it with mystructure\myvariable = 100. mystructure = 100 won't fly.
I know how variables and structures work. My point is, it seems superfluous to have an = sign here, because there's no need for it.
Global StringSection mystring.s = "hi"
Yes that's what I thought. Or:
Code: Select all
StringSection Global mystring.s = "hi"
Six and half a dozen, really.
Re: StringSection / EndStringSection
Posted: Sat Jan 30, 2010 2:12 am
by chris319
it seems superfluous to have an = sign here, because there's no need for it.
Variables are always assigned as
a = 4 or
mystring.s = "blabla". With StringSection you're initializing a string variable. Why should StringSection be any different from any other variable assignment? If you have
Global a.l 4 it won't compile but that's what you're suggesting with StringSection.
I still don't see the need for them for linebreaks.
It gives the programmer options in the cases of CR, LF and CR + LF characters. In addition, someone may want to have a string which exceeds the width of the IDE window without having it scroll. That's not to say you couldn't embed newline characters into the source code -- they would not have to be mutually exclusive.
Re: StringSection / EndStringSection
Posted: Sat Jan 30, 2010 3:20 am
by freak
Kaeru Gaman:
Is there a specific reason why you are trying to get people into a fight recently?
Re: StringSection / EndStringSection
Posted: Tue Feb 02, 2010 11:46 am
by Kaeru Gaman
maybe I was a bit in a bad mood, but chris really got on my nerves.
first he nitpicked on the term "character", completely missing the point of string types,
when I explained it to him, he responded "look into the help",
and to the end of the "discussion" he wrote "thanks for sharing your vast wisdom"...
now here one or two days later he began nitpicking on a detail again,
stating that we all are wrong calling Chr(34) a DoubleQuote,
trying to prove that with an article that proved himself wrong.
so, he just asked for it!
you can't treat on somebody's toes and then revealing a flank without getting hit.
nobody likes smartasses, I should now that.
Re: StringSection / EndStringSection
Posted: Wed Feb 03, 2010 12:36 am
by chris319
Kaeru -
There are ways to disagree with someone without the hostility and aggression you resorted to. Being in a bad mood doesn't excuse the kind of behavior you engaged in no matter how you rationalize it. If you have problems controlling your hostility that's not our problem. You have now had three people tell you in different ways that your behavior was uncalled for, one of them a moderator.
As far as I'm concerned this is the end of this discussion.
Re: StringSection / EndStringSection
Posted: Wed Feb 03, 2010 1:45 am
by Kaeru Gaman
well, were I'm from, being a nitpicking moron is not the way to behave.
you insisted to show highest understanding resistence, talking to others as if they are stupid not following your stupid ideas.
I don't see three people telling me anything... list them, dude.
one asked for no flame, another - freak - asked me what is up...
there were other people who wrote you just were nitpicking.
I wonder why you didn't write anything for some days... I bet you asked freak to write something and waited for my answer.
I tell you once more:
when you behave stupid, you maybe told you are,
when you tell bullshit, you maybe told you are,
and when you can't live with it, you maybe additionally laughed at.
when you are just a nitpicking teeny smartass, tell me, and I maybe willing to give you more jester's license.
are you a PRINCE here by any means, I wonder why you said "our problem"...
when you insist in telling other people about their knowledge, and, after being answered, about their behaviour, you will gain a lot of pain out of it, no matter where you go.
be happy it's just a forum and it's just written words.
take into account that YOUR culture whatever it is is not better or worse than others.
don't tell me about my knowledge, and don't try to judge my culture!
too fine words and arrogant nitpicking is a heavy insultment in some cultures, so you just got an answer measured by your first agression.
when you piss at people, some people will piss back!
learn that lesson fast!
Re: StringSection / EndStringSection
Posted: Wed Feb 03, 2010 1:59 am
by chris319
As far as I'm concerned this is the end of this discussion.
Re: StringSection / EndStringSection
Posted: Wed Feb 03, 2010 2:01 am
by Kaeru Gaman
fine, so I hope you did not only read what I wrote but understood what I meant,
and next time you don't start nitpicking on me and treating on my toes.
Re: StringSection / EndStringSection
Posted: Wed Feb 03, 2010 4:24 pm
by blueznl
To lock or not to lock, that's the question...
Re: StringSection / EndStringSection
Posted: Wed Feb 03, 2010 4:36 pm
by Seymour Clufley
I hope it isn't locked. 3 pages for a feature request seems pretty good!
Re: StringSection / EndStringSection
Posted: Wed Feb 03, 2010 4:38 pm
by Kaeru Gaman
it should be splitted, since it was a meaningful thread until someone stated nonsense about the meaning of the term quote...
Re: StringSection / EndStringSection
Posted: Tue Feb 23, 2010 7:54 pm
by greyhoundcode
Probably flogging a dead horse here, but what about my heredoc syntax? As part of the language, rather than being implemented via a pre-processor arrangement?
Code: Select all
Print <<<TEXT
All my text goes here across as many lines as I please. Of course, heredocs allow a good descriptor to be annotated to the string. Here I used "text".
TEXT;
UpdateDB.s = <<<SQL
UPDATE `usertable` SET `last_login`=CURRENT_TIMESTAMP WHERE `signed_in`='1' AND `notes`='This time I have used SQL in place of TEXT.' LIMIT 1;
SQL;