Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2000-10

otherwise

7 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Adam Naumowicz

Hello,
I encountered a problem trying to compile a program with a following fragment:

type type1=record
OTHERWISE:type2;
......
end;

The compiler complains as if OTHERWISE is a reserved keyword in Pascal, but as I know it isn't for BP and DELPHI.
I even checked the docs, but the word is not listed there as a reserved identifier.
Anyone has an idea why I cannot use OTHERWISE ?
I know I can simply use some other identifier, but I just want to know ...

Adam Naumowicz

--------------------------------------
WWW: http://math.uwb.edu.pl/~adamn/
--------------------------------------

Reply by email

Matthew Bradford
to Adam Naumowicz

Isn't "OTHERWISE" part of the whole try except thing? I never really use that structure (although I suppose I should) so I am not totally sure of what I'm talking about. But if I had to guess... that would be it. :)

Matt

Show quoted text 28 lines
Hello, I encountered a problem trying to compile a program with a following fragment: type type1=record OTHERWISE:type2; ...... end; The compiler complains as if OTHERWISE is a reserved keyword in Pascal, but as I know it isn't for BP and DELPHI. I even checked the docs, but the word is not listed there as a reserved identifier. Anyone has an idea why I cannot use OTHERWISE ? I know I can simply use some other identifier, but I just want to know ... Adam Naumowicz -------------------------------------- WWW: http://math.uwb.edu.pl/~adamn/ -------------------------------------- _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Peter Vreman
to Matthew Bradford
you wrote
Isn't "OTHERWISE" part of the whole try except thing? I never really use that structure (although I suppose I should) so I am not totally sure of what I'm talking about. But if I had to guess... that would be it. :)

It's used in:

case i of
   1 : ;
otherwise
   ;
end;

Peter

Reply by email

Matthew Bradford
to Peter Vreman

Thats right... that is actually what I meant... just been seeing so many TRY EXCEPT messages that it clouded my brain. At any rate... anyone know when Lazurus is expected to go to 1.0? Also, when will FPC 1.0.1 (or whatever) be coming out? Just wondering and waiting...

Matt

Show quoted text 20 lines
At 17:34 3-10-00, you wrote: > Isn't "OTHERWISE" part of the whole try except thing? I never really > use that structure (although I suppose I should) so I am not totally > sure of what I'm talking about. But if I had to guess... that would > be it. :) It's used in: case i of 1 : ; otherwise ; end; Peter _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Peter Vreman
to Matthew Bradford
you wrote
Thats right... that is actually what I meant... just been seeing so many TRY EXCEPT messages that it clouded my brain. At any rate... anyone know when Lazurus is expected to go to 1.0? Also, when will FPC 1.0.1 (or whatever) be coming out? Just wondering and waiting...

Fpc 1.0.2 will be out soon. Only one bug still need to be fixed.

For lazarus you could better ask on the lazarus list.

Peter

Reply by email

Jeff Wormsley
to Peter Vreman: It's used in: case i of 1 : ; otherwise ; end; Peter
PM Peter Vreman wrote 7 lines
It's used in: case i of 1 : ; otherwise ; end;

What is the difference between that and ...

case i of
   1 : ;
else
end;

??? Is this an alternate syntax to allow some other flavor of pascal to use FPC? I admit I haven't used too many others (borland, some crappy one for the commodore 64, porting a few VAX programs) but I have never seen OTHERWISE before.

Jeff.

Reply by email

Sidney Cave

I am pretty sure "otherwise" is a reserved word in ISO standard Pascal. It is used in place of the BP "else" at the end of a case statement, as someone else just mentioned.

Sid Cave

--- Adam Naumowicz wrote 32 lines
Hello, I encountered a problem trying to compile a program with a following fragment: type type1=record OTHERWISE:type2; ...... end; The compiler complains as if OTHERWISE is a reserved keyword in Pascal, but as I know it isn't for BP and DELPHI. I even checked the docs, but the word is not listed there as a reserved identifier. Anyone has an idea why I cannot use OTHERWISE ? I know I can simply use some other identifier, but I just want to know ... Adam Naumowicz -------------------------------------- WWW: http://math.uwb.edu.pl/~adamn/ -------------------------------------- _______________________________________________ fpc-pascal maillist -

http://lists.freepascal.org/mailman/listinfo/fpc-pascal

=====
Sid Cave

__________________________________________________ Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free! http://photos.yahoo.com/

Reply by email