The £ sign in variable names?

Discuss all aspects of programming here. From 8-bit through to modern architectures.
Post Reply
jregel
Posts: 75
Joined: Fri Dec 20, 2013 6:39 pm
Location: Gloucestershire
Contact:

The £ sign in variable names?

Post by jregel » Tue Jul 25, 2017 8:04 am

I'm reading through the AMX SuperArt manual and disk and there are a set of routines that are designed to make WIMP interfaces easy. The provided code prefixes the variable names with a "£" and I've not come across this before:

Code: Select all

30010 DEFPROCinit
30020 	DIM £M$(5),£I%(5),£T%(5),£X%(5),£H%(5)
30030 	DIM £block 18,£menu 256
30040 	!£block=0
30050 ENDPROC
What (if any) is the significance of the "£"?

Thanks
BBC Master Turbo
Retroclinic External Datacentre
VideoNuLA
PiTubeDirect with Pi Zero

User avatar
flaxcottage
Posts: 3091
Joined: Thu Dec 13, 2012 8:46 pm
Location: Derbyshire
Contact:

Re: The £ sign in variable names?

Post by flaxcottage » Tue Jul 25, 2017 8:42 am

No significance.

Variable/function names in BBC basic may contain £ and underscore (_) characters as well as letters and digits. £ and _ may also start a variable name, so variables such as £1, £5 and _ are perfectly legal.
- John

Why do I keep collecting Acorn gear? I'm going to need a considerably bigger man-cave. :?

jregel
Posts: 75
Joined: Fri Dec 20, 2013 6:39 pm
Location: Gloucestershire
Contact:

Re: The £ sign in variable names?

Post by jregel » Tue Jul 25, 2017 10:00 am

Thanks for the clarification.
BBC Master Turbo
Retroclinic External Datacentre
VideoNuLA
PiTubeDirect with Pi Zero

User avatar
daveejhitchins
Posts: 4190
Joined: Wed Jun 13, 2012 5:23 pm
Location: Newton Aycliffe, County Durham
Contact:

Re: The £ sign in variable names?

Post by daveejhitchins » Tue Jul 25, 2017 10:27 am

Just a thought . . . Maybe just to be able to find them easily!

Dave H :D
Parts: UM6502CE, GAL22V10D, GAL16V8D, AS6C62256A, TC514400AZ, WD1772, R6522, TMS27C512, AT28C256
Products: ARA II, ABR, ATI, AP6, MGC, AP5 . . .
For a price list, contact me at: Retro Hardware AT dave ej hitchins DOT plus DOT com

Post Reply