[vwnc] DLLCC example - External Callback Example - sortExample method

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] DLLCC example - External Callback Example - sortExample method

Steve Whitson
In the DLLandCContectGuide (7.4, 7.6 and 7.7 sep09.3) in the first External Callback Example on page 103 (4-5), in the method sortExample, near the middle the comment says "create an Array of consequtive numbers that will be sorted.".  Then there are the two lines of code:

    type := CIntegerType long.
    data := UninterpretedBytes newInFixedSpace: type * 50.


How does CIntegerType long * 50 work?

Any ideas on what should go here?

Any help is greatly appreciated.  Thanks!
    -Steve

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] DLLCC example - External Callback Example - sortExamplemethod

Andres Valloud-6
At first sight, it seems to me the code should read type dataSize * 50.


From: [hidden email] [mailto:[hidden email]] On Behalf Of Steve Whitson
Sent: Friday, October 30, 2009 5:27 PM
To: [hidden email]
Subject: [vwnc] DLLCC example - External Callback Example - sortExamplemethod

In the DLLandCContectGuide (7.4, 7.6 and 7.7 sep09.3) in the first External Callback Example on page 103 (4-5), in the method sortExample, near the middle the comment says "create an Array of consequtive numbers that will be sorted.".  Then there are the two lines of code:

    type := CIntegerType long.
    data := UninterpretedBytes newInFixedSpace: type * 50.


How does CIntegerType long * 50 work?

Any ideas on what should go here?

Any help is greatly appreciated.  Thanks!
    -Steve

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc