Not existing label

This is a discussion on Not existing label within the Delphi forums in Programming Languages category; I haven't found this on QC. Is it bug or feature? procedure TForm1.Button1Click(Sender: TObject); label NotExists; begin ShowMessage('Test'); end; No hints, no errors, compiles fine....

Go Back   Application Development Forum > Programming Languages > Delphi

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-07-2008, 04:42 AM
Kryvich
Guest
 
Default Not existing label

I haven't found this on QC.
Is it bug or feature?

procedure TForm1.Button1Click(Sender: TObject);
label
NotExists;
begin
ShowMessage('Test');
end;

No hints, no errors, compiles fine.


Reply With Quote
  #2  
Old 08-07-2008, 05:35 AM
Jeremy Knowles
Guest
 
Default Re: Not existing label

Kryvich wrote:

>Is it bug or feature?


A feature, one linked to the nasty goto statement. The fact that the word
label should be in blue is a clue (assuming you haven't changed the colour
for reserved words).

--
Jeremy Knowles
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 02:34 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.