Hi everybody. I just pushed a couple language changes I've been  
working on:

- A "deprecated" declaration that can be applied to a word definition.  
When a word is marked as deprecated, references to it from other words  
are reported in the error list. (Code referencing the deprecated word  
will continue to function normally.) Now, when the Factor team changes  
or replaces existing language features, they can mark the obsolete  
words as deprecated, and you'll be able to easily find and update your  
code that depends on the obsolete feature with the help of the UI.

- A mechanism for defining struct classes that look and behave like  
tuple classes, but are backed by raw memory and can be passed to the  
FFI like current C-STRUCTs. For example:

     USING: accessors classes.struct prettyprint ;
     STRUCT: RECT
         { x int } { y int } { w int } { h int } ;
     RECT <struct> 16 >>x 16 >>y 128 >>w 64 >>h .

would print:

     S{ RECT { x 16 } { y 16 } { w 128 } { h 64 } }

I have some work left to do before these structs are ready to replace  
C-STRUCTs; in particular, I need to add support for array slots that  
construct direct-arrays over parts of the struct. But as they stand,  
they're still pretty useful if you're manipulating structured blobs of  
memory from Factor.

-Joe

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to