Re: Parsing functions - do I need a keyword like 'def' to indicate a function?

Alex Colvin <alexc@TheWorld.com>
2 Nov 2004 12:09:26 -0500

          From comp.compilers

Related articles
[6 earlier articles]
Re: Parsing functions - do I need a keyword like 'def' to indicate a f lkrupp@pssw.NOSPAM.com.INVALID (Louis Krupp) (2004-10-17)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f lars@bearnip.com (2004-10-17)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f codeworker@free.fr (2004-10-17)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f zhouhui@wam.umd.edu (Hui Zhou) (2004-10-17)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f postmaster@paul.washington.dc.us (Paul Robinson) (2004-10-21)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f angagon@earthlink.net (Matt O'Connor) (2004-10-30)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f alexc@TheWorld.com (Alex Colvin) (2004-11-02)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f david.thompson1@worldnet.att.net (Dave Thompson) (2004-11-02)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f clint@0lsen.net (Clint Olsen) (2004-11-06)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f kenrose@tfb.com (Ken Rose) (2004-11-14)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f kers@hplb.hpl.hp.com (Chris Dollin) (2004-11-17)
Re: Parsing functions - do I need a keyword like 'def' to indicate a f david.thompson1@worldnet.att.net (Dave Thompson) (2004-11-28)
| List of all articles for this month |

From: Alex Colvin <alexc@TheWorld.com>
Newsgroups: comp.compilers
Date: 2 Nov 2004 12:09:26 -0500
Organization: The World : www.TheWorld.com : Since 1989
References: 04-10-092 04-10-161 04-10-185
Keywords: syntax, design
Posted-Date: 02 Nov 2004 12:09:26 EST

>>>lua uses "function"


>> So do C, Visual Basic, Pascal and Fortran.


>C doesn't.


C dosn't need a keyword to distinguish a call from a definition.
If it's outside a function it can only be a definition.
If it's inside a function it can only be a call.


C is not a scripting language.


--
mac the naf


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.