string

string

jimdempseyatthecove的头像

Definition:

string(variableName | value)

var s = "Hello";
var s2 = string(s);
var s3 = string("this too" + " going crazy" + s);

Is that valid?

Granted, you would ordinarily string assign without string() function.

Jim Dempsey

Blog: The Parallel Void

www.quickthreadprogramming.com
6 帖子 / 0 new
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项.
oshapovalov的头像
Quoting jimdempseyatthecove Definition:

string(variableName | value)

var s = "Hello";
var s2 = string(s);
var s3 = string("this too" + " going crazy" + s);

Is that valid?

Granted, you would ordinarily string assign without string() function.

Jim Dempsey

I think, string() can take only number, not string

john_e_lilley的头像

Easy to implement as no-op

Rama Kishan Malladi (Intel)的头像

Hi,
I don't see a need for using a string function call around another string value/ variable. But, yes, you can define this though we wouldn't have any test-case of this sort.

Thanks
-Rama

jimdempseyatthecove的头像

>>But, yes, you can define this though we wouldn't have any test-case of this sort.

Rama, you are missing the point of most of the gripes on this forum.

We are not asking "what is permitted"

We are asking "what are you requiring of the interpreter" and equally importantly "what are the test cases".

The test cases are important because they will tell us if you are correctly telling us "what are you requiring of the interpreter". Call this our checks and balances.

Although you are striving to have a simplified interpreter such that we can focus on parallelization, if we cannot meet your minimum requirement due to failure of specification to properly state what is required (e.g. left to right evaluation or right to left evaluation (you stated right to left which tends to be backwards unless you are a HP calculator)), then expect non-conforming entrants.

Jim

Blog: The Parallel Void

www.quickthreadprogramming.com
Rama Kishan Malladi (Intel)的头像

Hi Jim,
We would not have this scenario in our tests and this is not expected of the parser. The string() function is meant for number to string conversionand that is what we plan to use or test it against. Hope this clarifies.

Thanks
-Rama

登陆并发表评论。