Is this the mailing list ? I subscribed to some gnu-pascal list but it had a different email address ... Please reply as soon as possible ... Thank you
Hello, Hilohi Gabriel!
Is this the mailing list ?
Sort of. Better use gpc@gnu.de.
I subscribed to some gnu-pascal list but it had a different email address ...
The list has moved from gpc@hut.fi to gpc@gnu.de some weeks ago.
Please reply as soon as possible ...
Soon enough? ;-)
Peter
So now that i am sure where i'm writing to i have a question. It's a very easy one actually. What happened to the "<>" sign ? It has another name offcourse ... But anyway the compiler doesn't understand it What can i use ? I tried "!=" but still didn't worked ... I will appreciate if you'll help me ...
Hilohi Gabriel wrote:
What happened to the "<>" sign ?
Nothing. It just works.
It has another name offcourse ... But anyway the compiler doesn't understand it
My compiler does. Please show us your test program.
I tried "!=" but still didn't worked ...
Of course.
Peter
Well ... it's a much simple program .. I'm quite ashame of showing it to such experienced programmers as i think you are ... But it was a simple instruction :
while s <> " " do
and s was s:string[1000]
Do i have to say while s <> ' ' ???
Hilohi Gabriel wrote:
while s <> " " do
and s was s:string[1000]
The following works for me:
Program Test;
Var S: String [ 1000 ];
begin while S <> " " do S:= " "; end.
However ...
Do i have to say while s <> ' ' ???
... yes. Pascal strings are in ''; GPC accepts "" as an extension. Better use ''.
You know that ' ' (or " ") is a string that contains a space? The empty string is '' (or "").
Hope this helps,
Peter