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

ForNext

Only Do What Only You Can Do

022. undefined test

VBScript

JScript

Perl

same as null test; no distinction between undefined variables and variables set to undef


PHP

same as null test; no distinction between undefined variables and variables set to NULL


Python

not_defined = False
try: v
except NameError: not_defined = True

Ruby

! defined?(v)


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