On Tuesday, 9 July 2013 at 19:14:30 UTC, Kagamin wrote:
With dynamic typing there's no way to tell if Math.max(12,24)
is a method call or field delegate call.
The way my thing works is Math.max (or anything else) returns a
ref var, and the (12,24) does opCall on it, which succeeds if the
var
On Saturday, 6 July 2013 at 00:21:54 UTC, Adam D. Ruppe wrote:
// the second () is just because @property is broken
writeln(Math.max()("12", 24)); // prints 24
With dynamic typing there's no way to tell if Math.max(12,24) is
a method call or field delegate call. Javascript assumes it's
member
On Monday, 8 July 2013 at 14:15:40 UTC, Adam D. Ruppe wrote:
Now I just have to decide what to actually write...
I wrote something but it is kinda meandering.
http://wiki.dlang.org/Dynamic_typing
On Saturday, 6 July 2013 at 14:18:35 UTC, Andrei Alexandrescu
wrote:
Perfect! Adam, no more excuses :o).
Now I just have to decide what to actually write... I don't know,
I think the OP code mostly speaks for itself and I don't even
have much to add beyond it.
On Friday, 5 July 2013 at 23:04:28 UTC, Adam D. Ruppe wrote:
BTW I'll push another commit to jsvar.d and script.d over the
weekend. I got return/break/continue working now (in the cases
I've tried at least, simple ones).
I just pushed another commit to github that includes this and
other stu
Seems like vibe.d runs a blog http://vibed.org/blog/ doesn't it
suit you?
On Saturday, 6 July 2013 at 06:46:42 UTC, Joseph Rushton Wakeling
wrote:
YMMV of course. I've never felt the need to write my own
plugins so never had to deal with the painful side of WordPress.
That's really what killed me on it. I have one recurring work
client who loves Wordpress, but alway
On 6-7-2013 08:57, Paulo Pinto wrote:
Am 06.07.2013 02:27, schrieb Adam D. Ruppe:
On Friday, 5 July 2013 at 23:35:54 UTC, Andrei Alexandrescu wrote:
I think you really should put the code in shape and convert your
initial post into a blog entry.
You know, I have a lot of things I want to blab
On 7/5/13 11:57 PM, Paulo Pinto wrote:
Am 06.07.2013 02:27, schrieb Adam D. Ruppe:
On Friday, 5 July 2013 at 23:35:54 UTC, Andrei Alexandrescu wrote:
I think you really should put the code in shape and convert your
initial post into a blog entry.
You know, I have a lot of things I want to bla
Am 06.07.2013 02:27, schrieb Adam D. Ruppe:
On Friday, 5 July 2013 at 23:35:54 UTC, Andrei Alexandrescu wrote:
I think you really should put the code in shape and convert your
initial post into a blog entry.
You know, I have a lot of things I want to blab about, but the problem
is I don't have
On Saturday, 6 July 2013 at 00:27:45 UTC, Adam D. Ruppe wrote:
I really should either finish it or just give in and use a
third party service or something (the closest I've come is this
newsgroup!), since at least blog blabbing would be *some*
documentation for half my random stuff, but just...
On 7/5/2013 5:27 PM, Adam D. Ruppe wrote:
On Friday, 5 July 2013 at 23:35:54 UTC, Andrei Alexandrescu wrote:
I think you really should put the code in shape and convert your initial post
into a blog entry.
You know, I have a lot of things I want to blab about, but the problem is I
don't have a
On Saturday, 6 July 2013 at 00:27:45 UTC, Adam D. Ruppe wrote:
On Friday, 5 July 2013 at 23:35:54 UTC, Andrei Alexandrescu
wrote:
I think you really should put the code in shape and convert
your initial post into a blog entry.
You know, I have a lot of things I want to blab about, but the
pro
On Friday, 5 July 2013 at 23:35:54 UTC, Andrei Alexandrescu wrote:
I think you really should put the code in shape and convert
your initial post into a blog entry.
You know, I have a lot of things I want to blab about, but the
problem is I don't have a blog! I'm slowly working on coding one
(
On Friday, 5 July 2013 at 23:58:30 UTC, Rob T wrote:
What I always wanted to see, was full signature overloading
rather than only the partial signature overloading we currently
have.
Indeed, that would be pretty cool.
On Friday, 5 July 2013 at 23:51:16 UTC, MattCoder wrote:
PS: I just think that "var" is "maybe" too generic, I would
called it as jsvar or anything like that, but this is just my
opinion, anyway I liked your solution.
I just wanted the authentic javascript experience :P
You could also rename
On Friday, 5 July 2013 at 08:26:23 UTC, Rory McGuire wrote:
Just need a decent wrapper on phobos to fix the naming of some
stuff.
That's fairly easy too:
import arsd.jsvar;
import arsd.script;
void main() {
var globals = var.emptyObject;
{
import std.algorithm;
On Friday, 5 July 2013 at 23:04:28 UTC, Adam D. Ruppe wrote:
Maybe, but that would still be limited to a list of types. What
would be ideal is if alias this or opImplicitCast existed, or
implicit constructors like C++ has for function calls and
could be a template:
T get(T)() { ...}
alia
On Friday, 5 July 2013 at 03:21:31 UTC, Adam D. Ruppe wrote:
Is any of this useful for anything? idk, maybe parsing json or
maybe the script language could find use. But the real point
I'm trying to make here is simply that...
d rox.
Awesome work, and I think it's a nice code to study more a
On 7/5/13 4:04 PM, Adam D. Ruppe wrote:
BTW I'll push another commit to jsvar.d and script.d over the weekend. I
got return/break/continue working now (in the cases I've tried at least,
simple ones).
I think you really should put the code in shape and convert your initial
post into a blog entr
On Friday, 5 July 2013 at 22:51:57 UTC, Rob T wrote:
I suppose i could to this
c = var.get!(typeof(c));
Yeah, I did two things: int c = var.get!int; and
int c;
var v;
v.putInto(c);
[do] you think multiple alias this will solve the problem?
Maybe, but that would still be limited to a list o
There are many cases where you do not know in advance what type
of data is being received through an interface to some other
system. This happens with some databases, and with messaging
systems, and if you are interfacing to any dynamically or weakly
typed language, such as with js/json.
I wi
On Fri, Jul 5, 2013 at 5:21 AM, Adam D. Ruppe wrote:
> [snip]
d rox.
>
!!! this is AWESOME!
Now one can use a mix of static and dynamic typing which is really nice
with document based databases.
Being able to script subsections of a website is also really interesting.
Nice bridge for javascript
import arsd.jsvar;
import std.stdio;
void main() {
var a = 10;
var b = a - 5;
a = [1,2,3];
a[1] = "two";
writeln(a);
a = json!q{
"foo":{"bar":100},
"joe":"joesph"
};
writeln(a.joe);
a.bar += 55;
b = a;
writeln(b.bar);
var c = (var d) { writeln("hello, ", d, "!
24 matches
Mail list logo