typed codeblocks in predicates
Posted: Mon Sep 30, 2019 8:43 am
Hi,
using the X# runtime and VO dialect, I have thiscode:
Should that compile?
Using the C# syntax it compiles:
With the codeblock syntax the compiler gives the following message:
even if I use the X# runtime.
Wolfgang
using the X# runtime and VO dialect, I have thiscode:
Code: Select all
using System.Collections.Generic
class SyntaxCmpletion
protect _oList as List<Exception>
constructor()
_oList := List<Exception>{}
return
method CheckSyntax( cMessage as string ) as Exception
local oResult as Exception
oResult := _oList:Find( {| o as Exception | o:Message == cMessage } )
return oResult
end class
Using the C# syntax it compiles:
Code: Select all
oResult := _oList:Find( { o as Exception => o:Message == cMessage } )
Code: Select all
error XS9057: Typed parameters in codeblocks are not supported by the (Vulcan) runtime.
Wolfgang