[Implemented] #PB_Compiler_Procedure

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Motu
Enthusiast
Enthusiast
Posts: 160
Joined: Tue Oct 19, 2004 12:24 pm

[Implemented] #PB_Compiler_Procedure

Post by Motu »

#PB_Compiler_Line is realy nice for debugging purpose.
Also it would be very nice to have the constant

#PB_Compiler_Procedure

that will be replaced by the procedures name currently running for standart error functions like this one:

Procedure ErrorMsg(Function.s,ErrorString.s,Line.l)
MessageRequester("Error in " + Function,ErrorString + " Line:" + Str(Line),0)
End
EndProcedure

:)
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

It is already working on the beta, but not documented (was planned for 4.20).
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Very nice. :)
I may look like a mule, but I'm not a complete ass.
#NULL
Addict
Addict
Posts: 1497
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Post by #NULL »

yes, good to know.
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Post by AND51 »

Nice!
Are there more undocumented constants?

I'm curious: Why do you implement this nice feature, but don't document it? Are these constants still experimental?
PB 4.30

Code: Select all

onErrorGoto(?Fred)
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

We have to stop somewhere to release a freezed version, but sometimes it's easier to implement new features in a row, so we keep them hidden.
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Post by AND51 »

Ah, okay Fred. I understand.
I just want to give you the advice, not to forget to document hidden features (remember the undocumented 'Channel'-parameter in SoundFrequency()).
PB 4.30

Code: Select all

onErrorGoto(?Fred)
Post Reply