Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » How to write higher-order proc?
How to write higher-order proc? [message #1795102] Fri, 14 September 2018 14:27
Jens Lidestrom is currently offline Jens LidestromFriend
Messages: 11
Registered: April 2017
Location: Göteborg, Sweden
Junior Member
Is it possible to create a proc that takes a block of code as an argument, and then executes that block of code?

Something like this:

proc "higher-order-proc" [val arg] {
	emit "Test?" | $arg
}

higher-order-proc -arg { show-alert }


The intention here is that the code should show the alert box with the text "Test?", but that doesn't happen.

Is there any way to do this?

[Updated on: Sat, 15 September 2018 10:15]

Report message to a moderator

Previous Topic:AuT crash with "Connection is not Available" at "Accept License" dialog
Next Topic:Verification of Browser DOM
Goto Forum:
  


Current Time: Tue Feb 27 08:24:36 GMT 2024

Powered by FUDForum. Page generated in 0.01849 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top