home > 比較編 > Perl, PHP, Python, Ruby > はじめに >

ForNext

Only Do What Only You Can Do

014. regions which define local scope

VBScript

JScript

Perl

top level:
  file

nestable:
  function body
  anonymous function body
  anonymous block


PHP

top level:
  function or method body

nestable (with use clause):
  anonymous function body




Python

nestable (read only):
  function or method body







Ruby

top level:
  file
  class block
  module block
  method body

nestable:
  anonymous function block
  anonymous block

PowerShell

Scala

F#

C

C++

C++Builder

VC++

C#

Java

Objective-C

D

VB

VB.NET

Delphi

Ada

PL/SQL

T-SQL

関数型

inserted by FC2 system