Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Trond
Always Here
Posts: 7446 Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway
Post
by Trond » Sat Nov 05, 2005 11:25 am
Suggestion: Allow code like this:
Since we can do that with variables it would be nice to do it with labels, too. Of course we can use l_ in front of it, but still I'd like to see this.
Dr. Dri
Enthusiast
Posts: 243 Joined: Sat Aug 23, 2003 6:45 pm
Post
by Dr. Dri » Sat Nov 05, 2005 11:53 am
Code: Select all
!JMP l_mylabel
Debug "no jump"
End
mylabel:
Debug "jump"
Dri
Trond
Always Here
Posts: 7446 Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway
Post
by Trond » Sat Nov 05, 2005 12:28 pm
Trond wrote: Of course we can use l_ in front of it, but still I'd like to see this.
Polo
Addict
Posts: 2422 Joined: Tue May 06, 2003 5:07 pm
Location: UK
Post
by Polo » Sat Nov 05, 2005 3:10 pm
Some people "sometimes" forget this is a feature request and not a tip request.
thefool
Always Here
Posts: 5875 Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark
Post
by thefool » Sat Nov 05, 2005 3:18 pm
The good thing from this syntax is, that it allows us to do this:
Code: Select all
a=?label
JMP a
Debug "Im actually not shown!"
label:
Debug "Im the only line in your debugger!"
And yes i have used that
Now we can have both labels and variables with the same name..
And otherwise the compiler would need to check if the given thing is a label or an variable to get the value from!
El_Choni
TailBite Expert
Posts: 1007 Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain
Post
by El_Choni » Sat Nov 05, 2005 4:55 pm
I ssuport the request, it's not the same "JMP [address]" to "JMP address".
El_Choni
Psychophanta
Always Here
Posts: 5153 Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:
Post
by Psychophanta » Sat Nov 05, 2005 6:54 pm
Code: Select all
!JMP eti
Debug "Im actually not shown!"
eti:!eti:
Debug "Im the only line in your debugger!"
Are there too much work to add a '!' ?
Dr. Dri
Enthusiast
Posts: 243 Joined: Sat Aug 23, 2003 6:45 pm
Post
by Dr. Dri » Sat Nov 05, 2005 7:22 pm
Trond wrote: Trond wrote: Of course we can use l_ in front of it, but still I'd like to see this.
didn't see that
Dri