Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
3
Task/Unicode-variable-names/00-META.yaml
Normal file
3
Task/Unicode-variable-names/00-META.yaml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
from: http://rosettacode.org/wiki/Unicode_variable_names
|
||||
note: Unicode
|
||||
12
Task/Unicode-variable-names/00-TASK.txt
Normal file
12
Task/Unicode-variable-names/00-TASK.txt
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
;Task:
|
||||
# Describe, and give a pointer to documentation on your languages use of characters ''beyond'' those of the ASCII character set in the naming of variables.
|
||||
# Show how to:
|
||||
:* Set a variable with a name including the 'Δ', (delta ''character''), to 1
|
||||
:* Increment it
|
||||
:* Print its value.
|
||||
|
||||
|
||||
;Related task:
|
||||
* [[Case-sensitivity of identifiers]]
|
||||
<br><br>
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
V Δx = 1
|
||||
Δx++
|
||||
print(Δx)
|
||||
19
Task/Unicode-variable-names/8th/unicode-variable-names.8th
Normal file
19
Task/Unicode-variable-names/8th/unicode-variable-names.8th
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
1 var, Δ
|
||||
|
||||
Δ @ n:1+ Δ !
|
||||
|
||||
Δ @ . cr
|
||||
|
||||
\ unicode silliness
|
||||
|
||||
: 念 ' G:@ w:exec ;
|
||||
: 店 ' G:! w:exec ;
|
||||
: ਵਾਧਾ ' n:1+ w:exec ;
|
||||
: الوداع ' G:bye w:exec ;
|
||||
: キャリッジリターン ' G:cr w:exec ;
|
||||
: प्रिंट ' G:. w:exec ;
|
||||
|
||||
Δ 念 ਵਾਧਾ Δ 店
|
||||
|
||||
Δ 念 प्रिंट キャリッジリターン
|
||||
الوداع
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
(let ((Δ 1))
|
||||
(1+ Δ))
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
with Ada.Text_IO;
|
||||
procedure main is
|
||||
Δ : Integer;
|
||||
begin
|
||||
Δ := 41;
|
||||
Δ := Δ + 1;
|
||||
Ada.Text_IO.Put_Line (Δ'Img);
|
||||
end main;
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
set |Δ| to 1
|
||||
set |Δ| to |Δ| + 1
|
||||
return |Δ|
|
||||
|
|
@ -0,0 +1 @@
|
|||
2
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
"Δ": 1
|
||||
"Δ": inc var "Δ"
|
||||
|
||||
print ["Delta =>" var "Δ"]
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Δ = 1
|
||||
Δ++
|
||||
MsgBox, % Δ
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
PRAGMA COMPILER clang
|
||||
|
||||
DECLARE Δ TYPE int
|
||||
|
||||
Δ = 1
|
||||
|
||||
INCR Δ
|
||||
|
||||
PRINT Δ
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
( (Δ=1)
|
||||
& 1+!Δ:?Δ
|
||||
& out$("Δ:" !Δ)
|
||||
);
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
class Program
|
||||
{
|
||||
static void Main()
|
||||
{
|
||||
var Δ = 1;
|
||||
Δ++;
|
||||
System.Console.WriteLine(Δ);
|
||||
}
|
||||
}
|
||||
9
Task/Unicode-variable-names/C/unicode-variable-names.c
Normal file
9
Task/Unicode-variable-names/C/unicode-variable-names.c
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// Works for clang and GCC 10+
|
||||
#include<stdio.h>
|
||||
|
||||
int main() {
|
||||
int Δ = 1; // if unsupported, use \u0394
|
||||
Δ++;
|
||||
printf("%d",Δ);
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
(let [Δ 1]
|
||||
(inc Δ))
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
(let ((Δ 1))
|
||||
(incf Δ))
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Δ = 1
|
||||
Δ += 1
|
||||
puts Δ
|
||||
7
Task/Unicode-variable-names/D/unicode-variable-names.d
Normal file
7
Task/Unicode-variable-names/D/unicode-variable-names.d
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import std.stdio;
|
||||
|
||||
void main() {
|
||||
auto Δ = 1;
|
||||
Δ++;
|
||||
writeln(Δ);
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
var Δ : Integer;
|
||||
|
||||
Δ := 1;
|
||||
Inc(Δ);
|
||||
PrintLn(Δ);
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
(* Compiled with Delphi XE *)
|
||||
program UnicodeVariableName;
|
||||
|
||||
{$APPTYPE CONSOLE}
|
||||
|
||||
uses
|
||||
SysUtils;
|
||||
|
||||
var
|
||||
Δ: Integer;
|
||||
|
||||
begin
|
||||
Δ:= 1;
|
||||
Inc(Δ);
|
||||
Writeln(Δ);
|
||||
Readln;
|
||||
end.
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
(define ∆-🍒 1) → ∆-🍒
|
||||
(set! ∆-🍒 (1+ ∆-🍒)) → 2
|
||||
(printf "🔦 Look at ∆-🍒 : %d" ∆-🍒)
|
||||
🔦 Look at ∆-🍒 : 2
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
public program()
|
||||
{
|
||||
var Δ := 1;
|
||||
Δ := Δ + 1;
|
||||
|
||||
console.writeLine:Δ
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
(setq Δ 1)
|
||||
(setq Δ (1+ Δ))
|
||||
(message "Δ is %d" Δ)
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
let mutable Δ = 1
|
||||
Δ <- Δ + 1
|
||||
printfn "%d" Δ
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
USE: locals
|
||||
[let
|
||||
1 :> Δ!
|
||||
Δ 1 + Δ!
|
||||
Δ .
|
||||
]
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
variable ∆
|
||||
1 ∆ !
|
||||
1 ∆ +!
|
||||
∆ @ .
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
'FB 1.05.0 Win64
|
||||
|
||||
Var delta = 1
|
||||
delta += 1
|
||||
Print delta '' 2
|
||||
Sleep
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Δ = 1
|
||||
Δ = Δ + 1
|
||||
println[Δ]
|
||||
9
Task/Unicode-variable-names/Go/unicode-variable-names.go
Normal file
9
Task/Unicode-variable-names/Go/unicode-variable-names.go
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
Δ := 1
|
||||
Δ++
|
||||
fmt.Println(Δ)
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
main = print ψ
|
||||
where δΔ = 1
|
||||
ψ = δΔ + 1
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
int Δ = 1;
|
||||
double π = 3.141592;
|
||||
String 你好 = "hello";
|
||||
Δ++;
|
||||
System.out.println(Δ);
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
var ᾩ = "something";
|
||||
var ĦĔĽĻŎ = "hello";
|
||||
var 〱〱〱〱 = "too less";
|
||||
var जावास्क्रिप्ट = "javascript"; // ok that's JavaScript in hindi
|
||||
var KingGeorgeⅦ = "Roman numerals.";
|
||||
|
||||
console.log([ᾩ, ĦĔĽĻŎ, 〱〱〱〱, जावास्क्रिप्ट, KingGeorgeⅦ])
|
||||
|
|
@ -0,0 +1 @@
|
|||
{ "Δ": 1 } | .["Δ"]
|
||||
|
|
@ -0,0 +1 @@
|
|||
.["Δ"]
|
||||
|
|
@ -0,0 +1 @@
|
|||
."Δ"
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
{ "Δ": 1 } # initialization
|
||||
| .["Δ"] += 1 # increment by 1
|
||||
| .["Δ"] # emit the incremented value
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
julia> Δ = 1 ; Δ += 1 ; Δ
|
||||
2
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
julia> Δ̂₂ = Δ^2
|
||||
4
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
fun main(args: Array<String>) {
|
||||
var Δ = 1
|
||||
Δ++
|
||||
print(Δ)
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
I HAS A SRS "Δ" ITZ 1
|
||||
SRS "Δ" R SUM OF SRS ":(394)" AN 1
|
||||
VISIBLE SRS ":[GREEK CAPITAL LETTER DELTA]"
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
var Δ = 1
|
||||
Δ += 1
|
||||
print(Δ.to_s())
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
Δ = 1
|
||||
Δ = Δ + 1
|
||||
put Δ
|
||||
-- 2
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
put 1 into Δ
|
||||
add 1 to Δ
|
||||
put Δ
|
||||
-- result is 2
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
∆ = 1
|
||||
∆ = ∆ + 1
|
||||
print(∆)
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
Δ=1
|
||||
Δ++
|
||||
Print Δ
|
||||
ᾩ=3
|
||||
Print ᾩ**2=ᾩ^2, ᾩ^2-1=8
|
||||
Τύπωσε ᾩ**2=ᾩ^2, ᾩ^2-1=8 ' this is Print statement too
|
||||
Print ᾡ=3
|
||||
जावास्क्रिप्ट=100
|
||||
जावास्क्रिप्ट++
|
||||
Print "जावास्क्रिप्ट=";जावास्क्रिप्ट
|
||||
ĦĔĽĻŎ$="hello"
|
||||
Print ĦĔĽĻŎ$+ħĕľļŏ$="hellohello"
|
||||
〱〱〱〱$="too less"
|
||||
Print Left$(〱〱〱〱$, 3)="too"
|
||||
|
||||
c͓͈̃͂̋̈̆̽h̥̪͕ͣ͛̊aͨͣ̍͞ơ̱͔̖͖̑̽ș̻̥ͬ̃̈ͩ =100 : Print "c͓͈̃͂̋̈̆̽h̥̪͕ͣ͛̊aͨͣ̍͞ơ̱͔̖͖̑̽ș̻̥ͬ̃̈ͩ ="; c͓͈̃͂̋̈̆̽h̥̪͕ͣ͛̊aͨͣ̍͞ơ̱͔̖͖̑̽ș̻̥ͬ̃̈ͩ
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Δ = 1;
|
||||
Δ++;
|
||||
Print[Δ]
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
using System.Console;
|
||||
|
||||
module UnicodeVar
|
||||
{
|
||||
Main() : void
|
||||
{
|
||||
mutable Δ = 1;
|
||||
Δ++;
|
||||
WriteLine($"Δ = $Δ");
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
/* NetRexx */
|
||||
options replace format comments java crossref symbols nobinary
|
||||
|
||||
upperΔ = 1
|
||||
Δupper = upperΔ
|
||||
lowerδ = 2
|
||||
δlower = lowerδ
|
||||
|
||||
say upperΔ '+' Δupper '= \-'
|
||||
upperΔ = upperΔ + Δupper
|
||||
say upperΔ
|
||||
|
||||
say lowerδ '+' δlower '= \-'
|
||||
lowerδ = lowerδ + δlower
|
||||
say lowerδ
|
||||
say
|
||||
|
||||
-- Unicode works with the NetRexx built-in functions
|
||||
Υππερ = '\u0391'.sequence('\u03a1') || '\u03a3'.sequence('\u03a9') -- ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ
|
||||
Λοωερ = '\u03b1'.sequence('\u03c1') || '\u03c3'.sequence('\u03c9') -- αβγδεζηθικλμνξοπρστυφχψω
|
||||
say Υππερ'.Lower =' Υππερ.lower()
|
||||
say Λοωερ'.Upper =' Λοωερ.upper()
|
||||
say
|
||||
|
||||
-- Note: Even with unicode characters NetRexx variables are case-insensitive
|
||||
numeric digits 12
|
||||
δ = 20.0
|
||||
π = Math.PI
|
||||
θ = Π * Δ
|
||||
σ = Θ ** 2 / (Π * 4) -- == Π * (Δ / 2) ** 2
|
||||
say 'Π =' π', diameter =' δ', circumference =' Θ', area =' Σ
|
||||
|
||||
return
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
var Δ = 1
|
||||
inc Δ
|
||||
echo Δ
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
class Test {
|
||||
function : Main(args : String[]) ~ Nil {
|
||||
Δ := 1;
|
||||
π := 3.141592;
|
||||
你好 := "hello";
|
||||
Δ += 1;
|
||||
Δ->PrintLine();
|
||||
}
|
||||
}
|
||||
3
Task/Unicode-variable-names/Ol/unicode-variable-names.ol
Normal file
3
Task/Unicode-variable-names/Ol/unicode-variable-names.ol
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
(define Δ 1)
|
||||
(define Δ (+ Δ 1))
|
||||
(print Δ)
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
<?php
|
||||
$Δ = 1;
|
||||
++$Δ;
|
||||
echo $Δ;
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
<@ LETVARLIT>Δ|1</@>
|
||||
<@ ACTICRVAR>Δ</@>
|
||||
<@ SAYVAR>Δ</@>
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
<@ LETVARLIT>三角洲|1</@>
|
||||
<@ ACTICRVAR>三角洲</@>
|
||||
<@ SAYVAR>三角洲</@>
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
use utf8;
|
||||
|
||||
my $Δ = 1;
|
||||
$Δ++;
|
||||
print $Δ, "\n";
|
||||
12
Task/Unicode-variable-names/Perl/unicode-variable-names-2.pl
Normal file
12
Task/Unicode-variable-names/Perl/unicode-variable-names-2.pl
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
use utf8;
|
||||
|
||||
BEGIN {
|
||||
my $val;
|
||||
sub Δ () : lvalue {
|
||||
$val;
|
||||
}
|
||||
}
|
||||
|
||||
Δ = 1;
|
||||
Δ++;
|
||||
print Δ, "\n";
|
||||
10
Task/Unicode-variable-names/Perl/unicode-variable-names-3.pl
Normal file
10
Task/Unicode-variable-names/Perl/unicode-variable-names-3.pl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
use utf8;
|
||||
use v5.10;
|
||||
|
||||
sub Δ () : lvalue {
|
||||
state $val;
|
||||
}
|
||||
|
||||
Δ = 1;
|
||||
Δ++;
|
||||
say Δ;
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
(phixonline)-->
|
||||
<span style="color: #008080;">with</span> <span style="color: #008080;">javascript_semantics</span>
|
||||
<span style="color: #004080;">integer</span> <span style="color: #000000;">Δ</span> <span style="color: #0000FF;">=</span> <span style="color: #000000;">1</span>
|
||||
<span style="color: #000000;">Δ</span> <span style="color: #0000FF;">+=</span> <span style="color: #000000;">1</span>
|
||||
<span style="color: #0000FF;">?</span><span style="color: #000000;">Δ</span>
|
||||
<!--
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
: (setq Δ 1)
|
||||
-> 1
|
||||
: Δ
|
||||
-> 1
|
||||
: (inc 'Δ)
|
||||
-> 2
|
||||
: Δ
|
||||
-> 2
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
#charset utf8
|
||||
void main()
|
||||
{
|
||||
int Δ = 1;
|
||||
Δ++;
|
||||
write( Δ +"\n");
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
$Δ = 2
|
||||
$π = 3.14
|
||||
$π*$Δ
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
% Unicode in predicate names:
|
||||
是. % be: means, approximately, "True".
|
||||
不是 :- \+ 是. % not be: means, approximately, "False". Defined as not 是.
|
||||
|
||||
% Unicode in variable names:
|
||||
test(Garçon, Δ) :-
|
||||
Garçon = boy,
|
||||
Δ = delta.
|
||||
|
||||
% Call test2(1, Result) to have 2 assigned to Result.
|
||||
test2(Δ, R) :- R is Δ + 1.
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
?- 是.
|
||||
true.
|
||||
|
||||
?- 不是.
|
||||
false.
|
||||
|
||||
?- test(X,Y).
|
||||
X = boy,
|
||||
Y = delta.
|
||||
|
||||
?- test2(1,Result).
|
||||
Result = 2.
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
>>> Δx = 1
|
||||
>>> Δx += 1
|
||||
>>> print(Δx)
|
||||
2
|
||||
>>>
|
||||
3
Task/Unicode-variable-names/R/unicode-variable-names.r
Normal file
3
Task/Unicode-variable-names/R/unicode-variable-names.r
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
f <- function(`∆`=1) `∆`+1
|
||||
|
||||
f(1)
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
/*REXX program (using the R4 REXX interpreter) which uses a Greek delta char).*/
|
||||
'chcp' 1253 "> NUL" /*ensure we're using correct code page.*/
|
||||
Δ=1 /*define delta (variable name Δ) to 1*/
|
||||
Δ=Δ+1 /*bump the delta REXX variable by unity*/
|
||||
say 'Δ=' Δ /*stick a fork in it, we're all done. */
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
#lang racket
|
||||
|
||||
;; Racket can use Unicode in identifier names
|
||||
(define √ sqrt)
|
||||
(√ 256) ; -> 16
|
||||
;; and in fact the standard language makes use of some of these
|
||||
(λ(x) x) ; -> an identity function
|
||||
|
||||
;; The required binding:
|
||||
(define Δ 1)
|
||||
(set! Δ (add1 Δ))
|
||||
(printf "Δ = ~s\n" Δ) ; prints "Δ = 2"
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
my $Δ = 1;
|
||||
$Δ++;
|
||||
say $Δ;
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
my @ᐁ = (0, 45, 60, 90);
|
||||
|
||||
sub π { pi };
|
||||
|
||||
sub postfix:<°>($degrees) { $degrees * π / 180 };
|
||||
|
||||
for @ᐁ -> $ಠ_ಠ { say sin $ಠ_ಠ° };
|
||||
|
||||
sub c͓͈̃͂̋̈̆̽h̥̪͕ͣ͛̊aͨͣ̍͞ơ̱͔̖͖̑̽ș̻̥ͬ̃̈ͩ { 'HE COMES' }
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
'Δ var
|
||||
#1 !Δ
|
||||
@Δ n:put
|
||||
&Δ v:inc
|
||||
@Δ n:put
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
# Project : Unicode variable names
|
||||
|
||||
Δ = "Ring Programming Language"
|
||||
see Δ + nl
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Δ = 1
|
||||
Δ += 1
|
||||
puts Δ # => 2
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
#![feature(non_ascii_idents)]
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
fn main() {
|
||||
let mut Δ: i32 = 1;
|
||||
Δ += 1;
|
||||
println!("{}", Δ);
|
||||
}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
define ∆increment(∆ref) {
|
||||
@∆ref++;
|
||||
}
|
||||
variable foo∆bar = 1;
|
||||
foo∆bar++;
|
||||
variable ∆bar = 1;
|
||||
∆bar++;
|
||||
∆increment(&∆bar);
|
||||
% foo∆bar should be 2 and ∆bar should be 3.
|
||||
print(foo∆bar);
|
||||
print(∆bar);
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
var Δ = 1
|
||||
val π = 3.141592
|
||||
val 你好 = "hello"
|
||||
Δ += 1
|
||||
println(Δ)
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
put 1 into Δ
|
||||
add 1 to Δ
|
||||
put Δ
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
var Δ = 1;
|
||||
Δ += 1;
|
||||
say Δ;
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
sca Δ=10
|
||||
sca Δ=Δ+1
|
||||
di Δ
|
||||
|
||||
local Δ=20
|
||||
local ++Δ
|
||||
di `Δ'
|
||||
|
||||
mata
|
||||
Δ=30
|
||||
Δ++
|
||||
Δ
|
||||
end
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
var Δ = 1
|
||||
let π = 3.141592
|
||||
let 你好 = "hello"
|
||||
Δ++
|
||||
println(Δ)
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
set Δx 1
|
||||
incr Δx
|
||||
puts [set Δx]
|
||||
puts ${Δx}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Δ=1
|
||||
Δ=`expr $Δ + 1`
|
||||
echo $Δ
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
Sub Main()
|
||||
Dim Δ As Integer
|
||||
Δ=1
|
||||
Δ=Δ+1
|
||||
Debug.Print Δ
|
||||
End Sub
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
var a = 3
|
||||
var b = 2
|
||||
var delta = a - b // ok
|
||||
var Δ = delta // not ok
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
delta:="\U0394;"; // UTF-8 delta
|
||||
klass:= // embryo(names, numFcns, numClasses, numParents, ...)
|
||||
self.embryo(L("","",delta),0,0,0).cook();
|
||||
klass.setVar(0,Ref(1)); // indirect set since delta not valid var name
|
||||
klass.vars.println();
|
||||
|
||||
dv:=klass.setVar(0); // which actually gets the var, go figure
|
||||
dv.inc(); // ie (*ptr)++
|
||||
dv.value.println();
|
||||
Loading…
Add table
Add a link
Reference in a new issue