|
I've read the wikipedia article on concatenative languages and I am now more confused than I was when I started. :-)
Can someone explain what a concatenative language is in stupid people terms?
Started by Jason Baker on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Concatenative language use a fixed data structure to save values that at present, it is not useful....
From a link on the page alamar referred to: Concatenative Languages
I haven't had replace the call to B with a call to C.
Than SO answerers.
|
|
Can someone point to real-world projects done in concatenative languages like Forth, Factor, Joy etc?
Started by Vijay Mathew on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Concatenative languages....
Take a look example.
PostScript is concatenative, and there's obviously a huge number of applications of PostScript of concatenative because its big deal is adding object-orientation, which implies instances.
|
|
On Thu, 17 Sep 2009 14:07:20 -0700 (PDT), Dominikus <dominikus.herzberg@gmail.com
The kernel of a concatenative programming language can be easily
implemented using a rewriting system. As a proof-of-concept the
presented implementation fully relies...
Started by Dominikus on
, 3 posts
by 2 people.
Answer Snippets (Read the full thread at omgili):
--
: Derick
---------------------------------------------------------....
On Thu, 17 Sep 2009 22:43:12 -0700 (PDT), Derick Eddington <derick.eddington@gmail.com
Thanks for sharing! I also am interested in embedding stack-based
languages in Scheme .
|
Ask your Facebook Friends
|
Is there a way in PHP to include a constant in a string without concatenating?
Started by Brian on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Constant() is an alternative way to get hold of a constant, but a function call can't be put ... .
This goes for any of the string formats in PHP including heredoc .
In Strings, there is no way for PHP to tell apart string data and constant identifiers .
|
|
This question comes from a comment to Range.Formula= in VBA throws a strange error .
I wrote that program by trial-and-error method so I naturally tried + to concatenate strings. But is & rather than + more correct method for concatenating strings?
Started by ilya n. on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Is always evaluated in a string context, while + may not concatenate if one of the operands is no string:
"1" + "2" => "12" "1" + 2 => 3 1 + "2" => 3 "a" + 2 => type mismatch
This is simply a subtle source of potential bugs and therefore....
|
|
What's the most efficient way to concatenate strings?
Started by jimmij on
, 13 posts
by 13 people.
Answer Snippets (Read the full thread at stackoverflow):
String strResult = sb.ToString();
@jonezy: String.Concat is ....
Stringbuilder
String.Concat(str1, str2) ?
The most efficient is to use StringBuilder, like so:
StringBuilder sb = new StringBuilder(); sb.Append("string1"); sb.Append("string2"); ...etc.. .
|
|
I need to concatenate two String arrays in Java.
void f(String[] first, String[] second) { String[] both = ??? }
What is the easiest way to do this?
Started by Antti Sykäri on
, 17 posts
by 15 people.
Answer Snippets (Read the full thread at stackoverflow):
Here's a method that will concatenate 2 arrays of type T
T[] concat(T[] A, T[] B) { T[] C= new T[A.length+B.length]; System.arraycopy(A, 0, C, 0, A.length); System.arraycopy(B, 0, C, A.length, B.length); return C; }
(source: Sun Forum )
I found....
|
|
How do I concatenate to NSStrings together in Objective C?
Answer Snippets (Read the full thread at stackoverflow):
If the string....
Be more specific if this is not the answer you are looking for .
If you have a mutable string then you can do:
NSMutableString* someString = [NSMutableString stringWithString: @"Hello"]; [someString appendString: @", world!"];
For example .
|
|
I would like to be able to do this:
lcd_putc("\fDeposited $" & disp_money & "\nAdd $" & temp & " more");
Unfortunately, the string literals and non-literals don't concatenate that easily. I know how to concatenate two literals, and how to concatenate ...
Started by Adam on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
I think you might be searching for sprintf
Example:
char string[50]; int file_number = 0; sprintf( string, "file.%d", file_number ); file_number++; output_file = fopen( string, "w" );
char *buf = (char*)calloc... .
Sprintf() and snprintf() are good for this.
|
|
Is there a way to have a common operator for concatenation in Oracle, Postgres and SQL Server.
In Oracle we uses '|', postgres uses '||' and sql server uses '+'.
I've solved the problem in postgres by adding the custom operator '+' to support string concatenation...
Started by Arun P Johny on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
(For those who come after us, here's a rosetta stone for SQL: SQL Dialects Reference )
If you're fixing up SQL scripts, I would consider the following solution:
BEFORE:
sql-shell-command... .
'||' certainly works in Oracle, though not apparently SQL Server .
|