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

View: New views
2 Messages — Rating Filter:   Alert me  

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

by Steve Whitson-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
vwnc@...
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

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

by Valloud, Andres :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


From: vwnc-bounces@... [mailto:vwnc-bounces@...] On Behalf Of Steve Whitson
Sent: Friday, October 30, 2009 5:27 PM
To: vwnc@...
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
vwnc@...
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc