[Implemented] Defined(...) with #PB_Label

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Leonhard
User
User
Posts: 55
Joined: Fri Jun 16, 2006 7:43 am

[Implemented] Defined(...) with #PB_Label

Post by Leonhard »

Why does Defined(...) not assisted #PB_Label?
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

because a label is nothing that is defined?
oh... and have a nice day.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Because PB doesn't keep track of labels, it just passes them on to fasm.
Fred
Administrator
Administrator
Posts: 18161
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

PB does track the labels (to perform syntax checks).
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Did it always do that?
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

even if implemented...
Defined() would only recon labels in the above code, not in the following.
like it is with constants and all other things.

perhaps this is a reason why it's not implemented, because labels are moreoften at the end of the code, in opposite to constants and stuff...
oh... and have a nice day.
Post Reply