Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Ansi -iso > Re: Case in ISO...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 197 of 215
Post > Topic >>

Re: Case in ISO-Pascal!!!

by CBFalconer <cbfalconer@[EMAIL PROTECTED] > Dec 16, 2007 at 03:10 PM

Zaka E-Lab wrote:
> 
> I'm not sure if the code snippet I'll put there is or not standard:
> 
> ..........
> case v of
>    1 : do_something;
>    2 : do_something;
>    else do_other_thing;
> ..........
> 
> I have the problem with the else sentence. I have read the
> Pascal ISO 7185 :1990, and I think that is not standard,
> but I want to be sure before I stop using it.

It is non-standard.  Some systems use it as an extension.  Others
use the "otherwise" word instead, as does ISO10206, extended
Pascal.  Don't forget the 'end' to terminate the case statement.

-- 
Merry Christmas, Happy Hanukah, Happy New Year
        Joyeux Noel, Bonne Annee.
Chuck F (cbfalconer at maineline dot net)
     <http://cbfalconer.home.att.net>


-- 
Posted via a free Usenet account from http://www.teranews.com
 




 3 Posts in Topic:
Case in ISO-Pascal!!!
Zaka E-Lab <shanatorio  2007-12-16 20:28:36 
Re: Case in ISO-Pascal!!!
CBFalconer <cbfalconer  2007-12-16 15:10:09 
Re: Case in ISO-Pascal!!!
scott moore <nospam@[E  2007-12-18 00:58:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 23 15:47:06 CDT 2008.