代码搜索:Variable
找到约 10,000 项符合「Variable」的源代码
代码结果 10,000
www.eeworm.com/read/154878/11921284
lua readonly.lua
-- make global variables readonly
local f=function (t,i) error("cannot redefine global variable `"..i.."'",2) end
local g={}
local G=getfenv()
setmetatable(g,{__index=G,__newindex=f})
setfenv(1,g)
-
www.eeworm.com/read/154878/11921287
lua undefined.lua
-- catch "undefined" global variables
local f=function (t,i) error("undefined global variable `"..i.."'",2) end
setmetatable(getfenv(),{__index=f})
-- an example
a=1
c=3
print(a,b,c) -- `b' is undef
www.eeworm.com/read/343519/11943586
h config.h
/****************************************Copyright (c)**************************************************
** Guangzou ZLG-MCU Development Co.,LTD.
**
www.eeworm.com/read/343393/11952672
h config.h
/****************************************Copyright (c)**************************************************
** Guangzou ZLG-MCU Development Co.,LTD.
**
www.eeworm.com/read/343384/11953242
h config.h
/****************************************Copyright (c)**************************************************
** Guangzou ZLG-MCU Development Co.,LTD.
**
www.eeworm.com/read/343372/11953627
h config.h
/****************************************Copyright (c)**************************************************
** Guangzou ZLG-MCU Development Co.,LTD.
**
www.eeworm.com/read/257010/11960121
m chp6ex6.m
Dx=[10; 10; 10]; % Change in variable is set to a high value
x=[1; 1; 1]; % Initial estimate
C=[11; 3; 6];
iter = 0;
www.eeworm.com/read/343069/11978821
h config.h
/****************************************Copyright (c)**************************************************
** Guangzou ZLG-MCU Development Co.,LTD.
**
www.eeworm.com/read/343068/11978872
h config.h
/****************************************Copyright (c)**************************************************
** Guangzou ZLG-MCU Development Co.,LTD.
**