Jump to content

Talk:Comparison of programming languages (syntax)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by BrentDT (talk | contribs) at 21:21, 10 March 2008 (is C semicolon terminated?). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

=begin

   Block comment
   =end

I've tried, it doesn't work in Perl. It ignores everything after the "=end". I've read that Perl requires "=cut" to finish POD block. May be that way will work better:

   =comment
   Block comment
   =cut

91.149.147.166 12:14, 20 August 2007 (UTC)[reply]

is C semicolon terminated?

i really doubt it is true. at leas generally. for

if(0) { }

and

if(0) {} else {}

are valid. in contrast to

if(1) ; 84.16.123.194 (talk) 16:55, 25 February 2008 (UTC)[reply]

C's compound statement is an exception to the rule. Such exceptions are pretty common. You could say Pascal is a period-terminated-statement language because of the end. to end the program. BrentDT (talk) 21:21, 10 March 2008 (UTC)[reply]