is this code wrong or does not enumerate the methods?
hi all!
i try to enumerate methos and properties from one object:
Re: enumerate methods
By: Ragnarok to DOVE-Net.Sync_JavaScript on Sat Feb 09 2008 03:15 am
is this code wrong or does not enumerate the methods?
I've never heard of _method_list
In general though Spidermonkey extensions start and end with an _
---
Synchronet - Jump on the Web 0.2 bandwagon!
---
? Synchronet ? My Brand-New BBS (All the cool SysOps run STOCK!)
Re: enumerate methods
By: Ragnarok to DOVE-Net.Sync_JavaScript on Sat Feb 09 2008 03:15 am
hi all!
i try to enumerate methos and properties from one object:
You can't enumerate methods directly. It appears you're looking at my jsdocs.js, which enumerates a special array (_method_list) that can be created by compiling Synchronet with BUILD_JSDOCS defined. This is not a SpiderMonkey feature, but something specific to Synchronet and will only
work with objects using special Synchronet functions (e.g.
js_SyncResolve).
function writeln(str)
{
write(str + "\n");
}
Snapple "Real Fact" #182:
A rainbow can only be seen in the morning or late afternoon.
Norco, CA WX: 57.0øF, 38% humidity, 2 mph NE wind, 0.00 inches rain/24hrs
function writeln(str)write(str + "\n");
{
}
Why do people redefine writeln() ??? It is already defined, not so?
Re: enumerate methods
By: Digital Man to Ragnarok on Sat Feb 09 2008 00:27:00
Snapple "Real Fact" #182:
A rainbow can only be seen in the morning or late afternoon.
Norco, CA WX: 57.0øF, 38% humidity, 2 mph NE wind, 0.00 inches
rain/24hrs
Hey, you got your WX machine fixed! Cool! (Only just noticed.)
Re: enumerate methodsjajaj! yes! =) i need to update te scripts.
By: Ragnarok to DOVE-Net.Sync_JavaScript on Sat Feb 09 2008 03:15:00
function writeln(str)
{
write(str + "\n");
}
Why do people redefine writeln() ??? It is already defined, not so?
---
Playing: "Baby Get Lost" by "Elysian Fields"
from the "Dreams That Breathe Your Name" album.
? Synchronet ? Making sure Jason works OK at The ANJO BBS
function writeln(str)write(str + "\n");
{
}
Why do people redefine writeln() ??? It is already defined, not so?
It's a recent addition to the console object... possible the same can be sai for jsexec or something. Not sure.
Norco, CA WX: 57.0øF, 38% humidity, 2 mph NE wind, 0.00 inches rain/24hrs
Hey, you got your WX machine fixed! Cool! (Only just noticed.)
Yeah, but I need a new one and the one I really want will be about $600 tota http://www.davisnet.com/weather/products/weather_product.asp?pnum=06152
... which I can't really justify right now, so perhaps I'll just get a small upgrade, like this one:
http://www.weathershack.com/honeywell/te923w.html
Re: enumerate methods
By: Digital Man to Angus McLeod on Sat Feb 09 2008 13:40:00
Norco, CA WX: 57.0øF, 38% humidity, 2 mph NE wind, 0.00 inches rain/24hrs
Hey, you got your WX machine fixed! Cool! (Only just noticed.)
Yeah, but I need a new one and the one I really want will be about $600 tota http://www.davisnet.com/weather/products/weather_product.asp?pnum=06152
Hey, that's pretty sweet!
... which I can't really justify right now, so perhaps I'll just get a small upgrade, like this one: http://www.weathershack.com/honeywell/te923w.html
That's not bad either!
I'd like to set up a system at our club that transmitted the data quite a distance, so I'm thinking some sort of cellular transmission. Trouble is, we have a power budget. There is only 12v DC power available on-site, maintained by a solar panel. Neither the battery nor the panel are in the best shape, so running anything complex and power-hungry is really not on.
Some of the better systems can store cumulative data and then transmit it periodically using modem or TCP/IP. Do you have a land line anywhere near th club house? (if it's the same club house I visited with you, I'm guessing "not").
Sysop: | Tandy |
---|---|
Location: | New York, USA |
Users: | 15 |
Nodes: | 13 (0 / 13) |
Uptime: | 02:14:28 |
Calls: | 335 |
Messages: | 113,421 |