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

ForNext

Only Do What Only You Can Do

016. constant declaration

VBScript

JScript

Perl

use constant PI => 3.14;


PHP

define("PI", 3.14);


Python

# uppercase identifiers
# constant by convention
PI = 3.14

Ruby

# warning if capitalized
# identifier is reassigned
PI = 3.14

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