For direct access use https://forums.oldunreal.com
It's been quite a while since oldunreal had an overhaul, but we are moving to another server which require some updates and changes. The biggest change is the migration of our old reliable YaBB forum to phpBB. This system expects you to login with your username and old password known from YaBB.
If you experience any problems there is also the usual "password forgotten" function. Don't forget to clear your browser cache!
If you have any further concerns feel free to contact me: Smirftsch@oldunreal.com

$=

Unreal Unreal and more Unreal
Post Reply
User avatar
[§Ŕ] ŤhěxĐâŕkśîđěŕ
OldUnreal Member
Posts: 4425
Joined: Wed Sep 03, 2008 8:19 am

$=

Post 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...
User avatar
Gizzy
OldUnreal Member
Posts: 1468
Joined: Thu Jul 10, 2014 7:13 pm

Re: $=

Post by Gizzy »

First question: What does that expression do? :P
User avatar
Bane
OldUnreal Member
Posts: 493
Joined: Sun Mar 03, 2002 6:32 pm

Re: $=

Post 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.
Author of Hide and Seek mod, and the NALIBALL mod

Hide and Seek can be downloaded from:
http://HideNSeek.5u.com
User avatar
Buster
Global Moderator
Posts: 1611
Joined: Wed Jun 08, 2005 3:02 am

Re: $=

Post by Buster »

I have one that I use now and then ...

: -)_...

A smoking smiley !!

LoL
Gatherstone - Unreal by Design
https://gatherstone.oldunreal.com

OK - he falls
Keep it Unreal !!
:-)_~
User avatar
PRIMEVAL
OldUnreal Member
Posts: 854
Joined: Mon Apr 24, 2006 10:45 pm

Re: $=

Post by PRIMEVAL »

¯\_(°.o)_/¯
Image
User avatar
Hyper
OldUnreal Member
Posts: 3529
Joined: Fri Oct 11, 2002 5:41 pm
Contact:

Re: $=

Post by Hyper »

$= is short for:

Image
TROGDOR!
The man who stopped a tsunami

http://www.hypercoop.tk
unreal://hypercoop.tk
User avatar
Gizzy
OldUnreal Member
Posts: 1468
Joined: Thu Jul 10, 2014 7:13 pm

Re: $=

Post by Gizzy »

$= is short for:

Image
TROGDOR!

:o :o
User avatar
PRIMEVAL
OldUnreal Member
Posts: 854
Joined: Mon Apr 24, 2006 10:45 pm

Re: $=

Post by PRIMEVAL »

TROGDOOOOOOOOOORRRRRR!!!!!
Image
User avatar
[§Ŕ] ŤhěxĐâŕkśîđěŕ
OldUnreal Member
Posts: 4425
Joined: Wed Sep 03, 2008 8:19 am

Re: $=

Post 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. :)
User avatar
GreatEmerald
OldUnreal Member
Posts: 5347
Joined: Mon May 21, 2007 2:30 pm

Re: $=

Post by GreatEmerald »

What's a$b? a giving a $ to b?
User avatar
[]KAOS[]Casey
OldUnreal Member
Posts: 4497
Joined: Sun Aug 07, 2011 4:22 am
Location: over there

Re: $=

Post by []KAOS[]Casey »

a="h";
b="i";
log(a$b); outputs hi
User avatar
GreatEmerald
OldUnreal Member
Posts: 5347
Joined: Mon May 21, 2007 2:30 pm

Re: $=

Post by GreatEmerald »

Ah, merge string... Interesting.
User avatar
Gizzy
OldUnreal Member
Posts: 1468
Joined: Thu Jul 10, 2014 7:13 pm

Re: $=

Post by Gizzy »

Ah, merge string... Interesting.
Indeed it does look interesting, but what is it useful for?
Last edited by Gizzy on Sun Jul 19, 2009 5:51 pm, edited 1 time in total.
User avatar
Bane
OldUnreal Member
Posts: 493
Joined: Sun Mar 03, 2002 6:32 pm

Re: $=

Post 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.
Author of Hide and Seek mod, and the NALIBALL mod

Hide and Seek can be downloaded from:
http://HideNSeek.5u.com
User avatar
Smartball
Global Moderator
Posts: 241
Joined: Fri Mar 22, 2002 4:01 am

Re: $=

Post 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.
Of all the things I've lost, I miss my mind the most.
User avatar
[§Ŕ] ŤhěxĐâŕkśîđěŕ
OldUnreal Member
Posts: 4425
Joined: Wed Sep 03, 2008 8:19 am

Re: $=

Post 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
Last edited by [§Ŕ] ŤhěxĐâŕkśîđěŕ on Thu Jul 23, 2009 7:49 pm, edited 1 time in total.
Post Reply

Return to “Unreal General Forum”