Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #7555

Re: Codeblocks

From "Johan Nel" <johan.nel@xsinet.co.za>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Codeblocks
Date 2014-12-01 04:25 +0200
Organization A noiseless patient Spider
Message-ID <m5gjja$mcq$1@dont-email.me> (permalink)
References <j5tm7apu76cdvc84d9500dqq9hnn8s9kho@4ax.com>

Show all headers | View raw


Hi Wolfgang,

There are very few differences between Clipper, VO and Vulcan syntax.

Clipper:
cb := {|i| i := i + 1}
?Eval(cb, 10)

VO:
You can only call Functions/Procedures inside codeblocks if they declared as 
CLIPPER calling convention or NOT-STRICT calling.

Vulcan:
Enhanced.
You can call any class/method/function/procedure that is part of your 
application.
There is a method to include also dynamic loaded libraries.  They in general 
not available, because they loaded after the macro compiler was loaded.

There is not really a similar implementation in any other language.  Closest 
is a ptr to a function that you pass around.
However you have the macro runtime compiled codeblocks that are difficult to 
beat:
cbstr := "{|o| o:DoSomeMethod()}"
cb := &(cbStr)
cb:Eval(oSomeObject)

CLASS SomeClass{}
  METHOD DoSomeObject() CLASS SomeClass
   MessageBox.Show("Hello World")
  RETURN
END CLASS

Feel free to ask if there is anything specific you would like to know.

Regards,

Johan Nel
Vulcan VIP
Durban, South Africa.

"dengler" <dewo001@hotmail.com> wrote in message 
news:j5tm7apu76cdvc84d9500dqq9hnn8s9kho@4ax.com...
> Hi !
> One big question about codeblocks and the evolution of this data
> structure!
>
> How is this data structure changed from clipper to vo and vulcan.
>
> For Clipper, there are some hints like compiled pCode.
>
> But how was this structure transformed to vo and now to vulcan?
>
> Is it also compiled pCode?
>
> Similar structures i do not find in other computer languages. Are
> other terms used i have to look for!
>
> How does Vulcan transform this with the tools of the dotnet framework?
> Or in other words: if i write in c# which construct is equivalent to
> codeblocks?
>
> Thanks
> Wolfgang



---
This email has been checked for viruses by Avast antivirus software.
http://www.avast.com

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Codeblocks dengler <dewo001@hotmail.com> - 2014-11-30 21:01 +0100
  Re: Codeblocks "Johan Nel" <johan.nel@xsinet.co.za> - 2014-12-01 04:25 +0200
  Re: Codeblocks "Wolfgang Riedmann" <wriedmann@gmail.com> - 2014-12-01 08:14 +0100
  Re: Codeblocks Malcolm G <malcolm-news2012delete@delete.jobstream.com> - 2014-12-01 09:32 +0000
  Re: Codeblocks dengler <dewo001@hotmail.com> - 2014-12-02 00:52 +0100

csiph-web