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 > Oberon > Of constants an...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 28 Topic 442 of 475
Post > Topic >>

Of constants and variables

by "Xcriber51" <Ken <ken-tusc@[EMAIL PROTECTED] >> Oct 18, 2007 at 07:05 AM

Hi

A very simple question (couldn't find the answer in the Help of BlackBox).
I want to create a string as a lookup table, so I want to make it a
constant. e.g.

    CONST Encodings = "01230124022455012623017272";

But then, since I want to use it as a lookup table, I want to access it
with an index, e.g.

    ch := Encodings[i];

Unfortunately, the compiler tells me this is a no-no. What exactly is the
reasoning behind this rule?

Thanks.


-- Ken


--
Message posted using
http://www.talkaboutprogramming.com/group/comp.lang.oberon/
More information at http://www.talkaboutprogramming.com/faq.html
 




 28 Posts in Topic:
Of constants and variables
"Xcriber51" <  2007-10-18 07:05:37 
Re: Of constants and variables
Stefano Ferrari <ferra  2007-10-18 07:36:44 
Re: Of constants and variables
"Xcriber51" <  2007-10-18 11:02:56 
Re: Of constants and variables
pjb@[EMAIL PROTECTED] (P  2008-06-13 20:55:42 
Re: Of constants and variables
Stefano Ferrari <ferra  2007-10-19 01:22:44 
Re: Of constants and variables
Stefano Ferrari <ferra  2007-10-19 01:34:25 
Re: Of constants and variables
"Xcriber51" <  2007-10-19 07:28:00 
Re: Of constants and variables
"Xcriber51" <  2007-10-22 05:41:51 
Re: Of constants and variables
"Chris Burrows"  2007-10-22 22:26:19 
Re: Of constants and variables
"Xcriber51" <  2007-10-22 12:20:08 
Re: Of constants and variables
"Chris Burrows"  2007-10-23 08:58:31 
Re: Of constants and variables
Stefano Ferrari <ferra  2007-10-19 06:09:17 
Re: Of constants and variables
"Chris Burrows"  2007-10-19 23:16:52 
Re: Of constants and variables
=?ISO-8859-1?Q?Christian_  2007-10-19 18:43:54 
Re: Of constants and variables
fmw@[EMAIL PROTECTED] (F  2007-10-19 16:06:35 
Re: Of constants and variables
=?ISO-8859-1?Q?Christian_  2007-10-19 18:33:11 
Re: Of constants and variables
August Karlstrom <fusi  2007-10-21 11:47:08 
Re: Of constants and variables
Ulrich <keine@[EMAIL P  2007-12-02 19:15:58 
Re: Of constants and variables
Ulrich <keine@[EMAIL P  2007-12-02 19:13:44 
Re: Of constants and variables
comp.lang.oberon@[EMAIL P  2007-12-02 23:01:11 
Re: Of constants and variables
Ulrich <keine@[EMAIL P  2007-12-07 00:23:22 
Re: Of constants and variables
comp.lang.oberon@[EMAIL P  2007-12-07 09:47:11 
Re: Of constants and variables
August Karlstrom <fusi  2007-10-21 11:58:00 
Re: Of constants and variables
Ulrich <keine@[EMAIL P  2007-12-02 19:29:01 
Re: Of constants and variables
Stefano Ferrari <ferra  2007-10-21 14:52:20 
Re: Of constants and variables
August Karlstrom <fusi  2007-10-22 17:57:46 
Re: Of constants and variables
Ulrich <keine@[EMAIL P  2007-12-02 19:23:15 
Re: Of constants and variables
fmw@[EMAIL PROTECTED] (F  2007-10-22 10:20:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sun Jul 6 1:38:18 CDT 2008.