Help with converting StrEvaluate to X#

This forum is meant for questions and discussions about the X# language and tools
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Help with converting StrEvaluate to X#

Post by robert »

Chris,
My current thinking is to only allow it in dialects where it is expect, in other words not in Vulcan and not in Core.

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Help with converting StrEvaluate to X#

Post by Chris »

Robert van der Hulst wrote:Chris,
My current thinking is to only allow it in dialects where it is expect, in other words not in Vulcan and not in Core.
Yeap, absolutely agreed!

Chris

ps. that's my first attempt to properly quote someone in the forums world, let's see if I did that properly :)
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
Otto
Posts: 174
Joined: Wed Sep 30, 2015 6:22 pm

Help with converting StrEvaluate to X#

Post by Otto »

agreed, seems best solution.
boonnam
Posts: 88
Joined: Mon May 08, 2017 6:42 pm
Location: USA

Help with converting StrEvaluate to X#

Post by boonnam »

Sorry to necro old thread. Any idea when StrEvaluate will be implemented (or will not be at all)? It will compile but throw errors during runtime:

Exception has been thrown by the target of an invocation.
The method or operation is not implemented.

Thanks.
User avatar
robert
Posts: 4520
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

Help with converting StrEvaluate to X#

Post by robert »

Boonnam,
Can you show me an example of how you are using this ?
(Apart from the previous example

Code: Select all

SELF:oNetClnt:SetFilter( StrEvaluate('MTYPE=="&cType"') )
And what is cType in this context. A local, a dynamic memory variable, anything else ?
Would it help if the compiler changes this to

Code: Select all

SELF:oNetClnt:SetFilter( ei"MTYPE=="{cType}"") )

that means, use an interpolated expression ?

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
Post Reply