Page 1 of 1
$=
Posted: Wed Jul 15, 2009 12:11 pm
by [§Ŕ] ŤhěxĐâŕkśîđěŕ
Why doesn't that expression exist? It'd save a bit of typing time. I think it's very easy to add but not sure about incompatibilities that it could cause...
Re: $=
Posted: Wed Jul 15, 2009 12:27 pm
by Gizzy
First question: What does that expression do?

Re: $=
Posted: Wed Jul 15, 2009 2:18 pm
by Bane
It doesn't do anything because it doesn't exist.
What it would do is be shorthand.
a = a$b;
a $= b;
Those two would be equivalent.
Darksider, it should be possible to create your own operators in UScript. Just write it yourself.
Re: $=
Posted: Wed Jul 15, 2009 7:18 pm
by Buster
I have one that I use now and then ...
: -)_...
A smoking smiley !!
LoL
Re: $=
Posted: Wed Jul 15, 2009 7:19 pm
by PRIMEVAL
¯\_(°.o)_/¯
Re: $=
Posted: Thu Jul 16, 2009 6:45 am
by Hyper
$= is short for:

TROGDOR!
Re: $=
Posted: Thu Jul 16, 2009 10:28 am
by Gizzy
$= is short for:

TROGDOR!

Re: $=
Posted: Thu Jul 16, 2009 6:02 pm
by PRIMEVAL
TROGDOOOOOOOOOORRRRRR!!!!!
Re: $=
Posted: Fri Jul 17, 2009 1:25 am
by [§Ŕ] ŤhěxĐâŕkśîđěŕ
Darksider, it should be possible to create your own operators in UScript. Just write it yourself.
Tbh that's what I though at first but I decided to ask someone not to mess something up.

Re: $=
Posted: Sun Jul 19, 2009 4:44 pm
by GreatEmerald
What's a$b? a giving a $ to b?
Re: $=
Posted: Sun Jul 19, 2009 5:15 pm
by []KAOS[]Casey
a="h";
b="i";
log(a$b); outputs hi
Re: $=
Posted: Sun Jul 19, 2009 5:42 pm
by GreatEmerald
Ah, merge string... Interesting.
Re: $=
Posted: Sun Jul 19, 2009 5:51 pm
by Gizzy
Ah, merge string... Interesting.
Indeed it does look interesting, but what is it useful for?
Re: $=
Posted: Sun Jul 19, 2009 6:03 pm
by Bane
Ah, merge string... Interesting.
Indeed it does look interesting, but what is it useful for?
It's useful for merging strings. That's pretty important.
Re: $=
Posted: Sun Jul 19, 2009 7:40 pm
by Smartball
$ is the concatenation operator for UScript.
The $= operator described here would be an assignment by concatenation operator. It would just be shorthand for something you can already do.
Some languages like Java and C# support concatenation by assignment through the += operator..
Just for fun I tried declaring my own $= operator in UScript, but the compiler kept telling me it was a bad operator definition. I was able to define a += operator for strings without an issue though.
Re: $=
Posted: Thu Jul 23, 2009 7:48 pm
by [§Ŕ] ŤhěxĐâŕkśîđěŕ
Just for fun I tried declaring my own $= operator in UScript, but the compiler kept telling me it was a bad operator definition. I was able to define a += operator for strings without an issue though.
Lol, I will do that then.
But it'll make the code incompatible if someone else doesn't have it declared, right? Actually, who would want to look at my beta codes? o_O