Mixin语句 Mixin语句 可以通过 mixin 强制打开符号声明: proc create *[ T ](): ref T = # 这里没有重载'init',所以我们需要明确说明它是一个开放的符号: mixin init new result init result mixin 语句只在模板和泛型...
ADD COLUMN ADD INDEX ADMIN ALTER DATABASE ALTER TABLE ALTER USER ANALYZE TABLE BEGIN COMMIT CREATE DATABASE CREATE INDEX CREATE TABLE LIKE CREATE TABLE CREATE USER ...
When语句 When语句 示例: when system . hostOS == "windows" : echo "running on Windows!" elif system . hostOS == "linux" : echo "running on Linux!" elif system . ho...
Case语句 Case语句 另一个分支的方法是case语句。case语句是多分支: let name = readLine ( stdin ) case name of "" : echo "Poor soul, you lost your name?" of "name" : echo "Very funny, ...