lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


It was thus said that the Great Thiago L. once stated:
> 
> >>What other strange operators have been spotted in the wild?
> >   !	poke	( effectively )
> >   @	peek	( effectively )
> >   #	divide number by 10 (usually, it can be anything from 2 on up) [1]
> >   '	return function address for the named function
> >   */	multiply, then divide
> >   <>	not equal
> >
> >   -spc (There are a few more, but they are not operators in the 
> >   traditional
> >	sense ... [2])
> >
> >[1]	It does something with the remainder, but describing that takes a
> >	bit longer
> >
> >[2]	Then again, the language I pulled these from is far from traditional
> >
> Is that FORTH? (pretty sure I've seen */ in FORTH)

  Yup.  The only language I know where you can define 2 to be anything you
want.

  -spc (And the only characters not allowed in an identifier are space and
	control characters ... )