string constant bug

cannot create empty string as constant

Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1408
Registered: 03 / 2005
Subject:

string constant bug

 · 
Posted: 19.03.2011 - 12:38  ·  #1
Hi Rolf.

I want to create an empty string as a constant.

Code
const
Empty : string = '';


or

Code
const
Empty : string[ cFixedStringLen ] = '';


But the compiler won't let me.

Regards

Merlin


Merlin.
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: string constant bug

 · 
Posted: 19.03.2011 - 19:33  ·  #2
Hello Merlin,

from my point of view it makes no sense to define such a string constant.
But it is implemented now.

rolf
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1408
Registered: 03 / 2005
Subject:

Re: string constant bug

 · 
Posted: 19.03.2011 - 22:01  ·  #3
Thanks

Merlin.
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 14   64   78 · Page-Gen-Time: 0.037718s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI